-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
12,616 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.27130.2010 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvxRecyclerViewSelection.Core", "src\MvxRecyclerViewSelection.Core\MvxRecyclerViewSelection.Core.csproj", "{2E769D01-5022-4103-ACD3-273DE1AE0440}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvxRecyclerViewSelection.Droid", "src\MvxRecyclerViewSelection.Droid\MvxRecyclerViewSelection.Droid.csproj", "{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "!Solution Items", "!Solution Items", "{3DC2B343-EB31-4813-9FD0-8067483158F8}" | ||
ProjectSection(SolutionItems) = preProject | ||
.editorconfig = .editorconfig | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU | ||
Ad-Hoc|ARM = Ad-Hoc|ARM | ||
Ad-Hoc|iPhone = Ad-Hoc|iPhone | ||
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator | ||
Ad-Hoc|x64 = Ad-Hoc|x64 | ||
Ad-Hoc|x86 = Ad-Hoc|x86 | ||
AppStore|Any CPU = AppStore|Any CPU | ||
AppStore|ARM = AppStore|ARM | ||
AppStore|iPhone = AppStore|iPhone | ||
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator | ||
AppStore|x64 = AppStore|x64 | ||
AppStore|x86 = AppStore|x86 | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|ARM = Debug|ARM | ||
Debug|iPhone = Debug|iPhone | ||
Debug|iPhoneSimulator = Debug|iPhoneSimulator | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|ARM = Release|ARM | ||
Release|iPhone = Release|iPhone | ||
Release|iPhoneSimulator = Release|iPhoneSimulator | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|x64.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Ad-Hoc|x86.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|Any CPU.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|ARM.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|ARM.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|iPhone.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|iPhone.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|x64.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|x64.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|x86.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.AppStore|x86.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|ARM.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|ARM.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|x64.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Debug|x86.Build.0 = Debug|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|ARM.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|ARM.Build.0 = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|iPhone.Build.0 = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|x64.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|x64.Build.0 = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|x86.ActiveCfg = Release|Any CPU | ||
{2E769D01-5022-4103-ACD3-273DE1AE0440}.Release|x86.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|ARM.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x64.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x86.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|Any CPU.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|Any CPU.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|Any CPU.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|ARM.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|ARM.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|ARM.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhone.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhone.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhone.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x64.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x64.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x64.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x86.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x86.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.AppStore|x86.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|ARM.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|ARM.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|ARM.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhone.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x64.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x64.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x86.Build.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Debug|x86.Deploy.0 = Debug|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|ARM.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|ARM.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|ARM.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhone.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhone.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x64.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x64.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x64.Deploy.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x86.ActiveCfg = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x86.Build.0 = Release|Any CPU | ||
{3F6CD433-0C41-446A-A7AD-2B204A6CDBC3}.Release|x86.Deploy.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {72D1687A-3C92-4429-962B-D8189B3863A8} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using MvvmCross.IoC; | ||
using MvvmCross.ViewModels; | ||
using MvxRecyclerViewSelection.Core.ViewModels.Main; | ||
|
||
namespace MvxRecyclerViewSelection.Core | ||
{ | ||
public class App : MvxApplication | ||
{ | ||
public override void Initialize() | ||
{ | ||
CreatableTypes() | ||
.EndingWith("Service") | ||
.AsInterfaces() | ||
.RegisterAsLazySingleton(); | ||
|
||
RegisterAppStart<MainViewModel>(); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/MvxRecyclerViewSelection.Core/MvxRecyclerViewSelection.Core.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MvvmCross" Version="6.1.2" /> | ||
<PackageReference Include="MvvmCross.CodeAnalysis" Version="6.1.2" /> | ||
</ItemGroup> | ||
</Project> |
12 changes: 12 additions & 0 deletions
12
src/MvxRecyclerViewSelection.Core/ViewModels/!Base/BaseViewModel.Param.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using MvvmCross.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels | ||
{ | ||
public abstract class BaseViewModel<TParameter> : BaseViewModel, IMvxViewModel<TParameter> | ||
{ | ||
public abstract void Prepare(TParameter parameter); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/MvxRecyclerViewSelection.Core/ViewModels/!Base/BaseViewModel.ResultAndParam.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using MvvmCross.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels | ||
{ | ||
public abstract class BaseViewModel<TParameter, TResult> : BaseViewModelResult<TResult>, IMvxViewModel<TParameter, TResult> | ||
{ | ||
public abstract void Prepare(TParameter parameter); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/MvxRecyclerViewSelection.Core/ViewModels/!Base/BaseViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using MvvmCross.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels | ||
{ | ||
public abstract class BaseViewModel : MvxViewModel | ||
{ | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/MvxRecyclerViewSelection.Core/ViewModels/!Base/BaseViewModelResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using MvvmCross.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels | ||
{ | ||
public abstract class BaseViewModelResult<TResult> : BaseViewModel, IMvxViewModelResult<TResult> | ||
{ | ||
public TaskCompletionSource<object> CloseCompletionSource { get; set; } | ||
|
||
public override void ViewDestroy(bool viewFinishing = true) | ||
{ | ||
if (viewFinishing && CloseCompletionSource?.Task.IsCompleted == false && !CloseCompletionSource.Task.IsFaulted) | ||
CloseCompletionSource?.TrySetCanceled(); | ||
|
||
base.ViewDestroy(viewFinishing); | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/MvxRecyclerViewSelection.Core/ViewModels/Main/MainContainerViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels.Main | ||
{ | ||
public class MainContainerViewModel : BaseViewModel | ||
{ | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/MvxRecyclerViewSelection.Core/ViewModels/Main/MainViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MvxRecyclerViewSelection.Core.ViewModels.Main | ||
{ | ||
public class MainViewModel : BaseViewModel | ||
{ | ||
} | ||
} |
113 changes: 113 additions & 0 deletions
113
src/MvxRecyclerViewSelection.Droid/Linker/LinkerPleaseInclude.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
using System; | ||
using System.Collections.Specialized; | ||
using System.ComponentModel; | ||
using System.Windows.Input; | ||
using Android.App; | ||
using Android.Runtime; | ||
using Android.Views; | ||
using Android.Widget; | ||
using MvvmCross.Binding.BindingContext; | ||
using MvvmCross.IoC; | ||
using MvvmCross.Navigation; | ||
using MvvmCross.ViewModels; | ||
|
||
namespace MvxRecyclerViewSelection.Droid.Linker | ||
{ | ||
// This class is never actually executed, but when Xamarin linking is enabled it does how to ensure types and properties | ||
// are preserved in the deployed app | ||
[Preserve(AllMembers = true)] | ||
public class LinkerPleaseInclude | ||
{ | ||
public void Include(Button button) | ||
{ | ||
button.Click += (s, e) => button.Text = $"{button.Text}"; | ||
} | ||
|
||
public void Include(View view) | ||
{ | ||
view.Click += (s, e) => view.ContentDescription = $"{view.ContentDescription}"; | ||
} | ||
|
||
public void Include(TextView text) | ||
{ | ||
text.AfterTextChanged += (sender, args) => text.Text = $"{text.Text}"; | ||
text.Hint = $"{text.Hint}"; | ||
} | ||
|
||
public void Include(CompoundButton cb) | ||
{ | ||
cb.CheckedChange += (sender, args) => cb.Checked = !cb.Checked; | ||
} | ||
|
||
public void Include(SeekBar sb) | ||
{ | ||
sb.ProgressChanged += (sender, args) => sb.Progress = sb.Progress + 1; | ||
} | ||
|
||
public void Include(RadioGroup radioGroup) | ||
{ | ||
radioGroup.CheckedChange += (sender, args) => radioGroup.Check(args.CheckedId); | ||
} | ||
|
||
public void Include(RatingBar ratingBar) | ||
{ | ||
ratingBar.RatingBarChange += (sender, args) => ratingBar.Rating = 0 + ratingBar.Rating; | ||
} | ||
|
||
public void Include(Activity act) | ||
{ | ||
act.Title = $"{act.Title}"; | ||
} | ||
|
||
public void Include(ICommand command) | ||
{ | ||
command.CanExecuteChanged += (s, e) => { if (command.CanExecute(null)) command.Execute(null); }; | ||
} | ||
|
||
public void Include(INotifyCollectionChanged changed) | ||
{ | ||
changed.CollectionChanged += (s, e) => { _ = $"{e.Action}{e.NewItems}{e.NewStartingIndex}{e.OldItems}{e.OldStartingIndex}"; }; | ||
} | ||
|
||
public void Include(INotifyPropertyChanged changed) | ||
{ | ||
changed.PropertyChanged += (sender, e) => { _ = e.PropertyName; }; | ||
} | ||
|
||
public void Include(MvxPropertyInjector injector) | ||
{ | ||
_ = new MvxPropertyInjector(); | ||
} | ||
|
||
public void Include(MvxTaskBasedBindingContext context) | ||
{ | ||
context.Dispose(); | ||
var context2 = new MvxTaskBasedBindingContext(); | ||
context2.Dispose(); | ||
} | ||
|
||
public void Include(MvxViewModelViewTypeFinder viewModelViewTypeFinder) | ||
{ | ||
_ = new MvxViewModelViewTypeFinder(null, null); | ||
} | ||
|
||
public void Include(MvxNavigationService service, IMvxViewModelLoader loader) | ||
{ | ||
_ = new MvxNavigationService(null, loader); | ||
_ = new MvxAppStart<MvxNullViewModel>(null, null); | ||
} | ||
|
||
public void Include(ConsoleColor color) | ||
{ | ||
Console.Write(""); | ||
Console.WriteLine(""); | ||
_ = Console.ForegroundColor; | ||
Console.ForegroundColor = ConsoleColor.Red; | ||
Console.ForegroundColor = ConsoleColor.Yellow; | ||
Console.ForegroundColor = ConsoleColor.Magenta; | ||
Console.ForegroundColor = ConsoleColor.White; | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
Console.ForegroundColor = ConsoleColor.DarkGray; | ||
} | ||
} | ||
} |
Oops, something went wrong.