├── .gitattributes ├── .gitignore ├── CreatePackages.ps1 ├── MvvmLight.XamarinForms.nuspec ├── MvvmLight.XamarinForms ├── DialogService.cs ├── MvvmLight.XamarinForms.csproj └── NavigationService.cs ├── MvvmLightNavigation.sln ├── MvvmLightNavigation └── MvvmLightNavigation │ ├── INavigationExtension.cs │ ├── MvvmLightNavigationExtension.csproj │ ├── NavigationServiceExtension.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── packages.config ├── MvvmLightNavigationExtension.Droid ├── MvvmLightNavigationExtension.Droid.csproj ├── NavigationServiceExtension.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.Designer.cs │ └── Values │ │ └── Strings.xml ├── app.config └── packages.config ├── MvvmLightNavigationExtension.Forms ├── DialogService.cs ├── MvvmLight.Extension.Forms.csproj ├── NavigationService.cs ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── MvvmLightNavigationExtension.NetStd ├── INavigationExtension.cs ├── MvvmLightNavigationExtension.NetStd.csproj └── NavigationServiceExtension.cs ├── MvvmLightNavigationExtension.Sample.Droid ├── Assets │ └── AboutAssets.txt ├── MainActivity.cs ├── Page3Activity.cs ├── PageActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.Designer.cs │ ├── drawable │ │ └── Icon.png │ ├── layout │ │ ├── Main.axml │ │ └── Page.axml │ └── values │ │ └── Strings.xml ├── Sample.Droid.csproj ├── app.config └── packages.config ├── MvvmLightNavigationExtension.Sample.iOS ├── AppDelegate.cs ├── Entitlements.plist ├── GettingStarted.Xamarin ├── Info.plist ├── Main.cs ├── Main.storyboard ├── Page3Controller.cs ├── Page3Controller.designer.cs ├── PageController.cs ├── PageController.designer.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ └── LaunchScreen.xib ├── Sample.iOS.csproj ├── ViewController.cs ├── ViewController.designer.cs ├── app.config └── packages.config ├── MvvmLightNavigationExtension.Sample ├── Properties │ └── AssemblyInfo.cs ├── Sample.csproj ├── ViewModels │ ├── MainViewModel.cs │ └── PageViewModel.cs └── packages.config ├── MvvmLightNavigationExtension.iOS ├── MvvmLightNavigationExtension.iOS.csproj ├── NavigationServiceExtension.cs ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── MvvmLightNavigationExtension.nuspec ├── MvvmLightNavigationForms.nuspec ├── Nuget.config ├── README.md └── XamarinFormsSample ├── XamarinFormsSample.Android ├── Assets │ └── AboutAssets.txt ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.Designer.cs │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-xhdpi │ │ └── icon.png │ ├── drawable-xxhdpi │ │ └── icon.png │ ├── drawable │ │ └── icon.png │ ├── layout │ │ ├── Tabbar.axml │ │ └── Toolbar.axml │ └── values │ │ └── styles.xml ├── XamarinFormsSample.Android.csproj └── packages.config ├── XamarinFormsSample.UWP ├── App.xaml ├── App.xaml.cs ├── Assets │ ├── LockScreenLogo.scale-100.png │ ├── LockScreenLogo.scale-125.png │ ├── LockScreenLogo.scale-150.png │ ├── LockScreenLogo.scale-200.png │ ├── LockScreenLogo.scale-400.png │ ├── SplashScreen.scale-100.png │ ├── SplashScreen.scale-125.png │ ├── SplashScreen.scale-150.png │ ├── SplashScreen.scale-200.png │ ├── SplashScreen.scale-400.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-100.png │ ├── Square44x44Logo.scale-125.png │ ├── Square44x44Logo.scale-150.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.scale-400.png │ ├── Square44x44Logo.targetsize-16_altform-unplated.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── Square44x44Logo.targetsize-256_altform-unplated.png │ ├── Square44x44Logo.targetsize-32_altform-unplated.png │ ├── Square44x44Logo.targetsize-48_altform-unplated.png │ ├── StoreLogo.png │ ├── Wide310x150Logo.scale-100.png │ ├── Wide310x150Logo.scale-125.png │ ├── Wide310x150Logo.scale-150.png │ ├── Wide310x150Logo.scale-200.png │ └── Wide310x150Logo.scale-400.png ├── MainPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── XamarinFormsSample.UWP.csproj ├── XamarinFormsSample.UWP.nuget.targets └── project.json ├── XamarinFormsSample.iOS ├── AppDelegate.cs ├── Entitlements.plist ├── Info.plist ├── Main.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ ├── Default-568h@2x.png │ ├── Default-Portrait.png │ ├── Default-Portrait@2x.png │ ├── Default.png │ ├── Default@2x.png │ ├── Icon-60@2x.png │ ├── Icon-60@3x.png │ ├── Icon-76.png │ ├── Icon-76@2x.png │ ├── Icon-Small-40.png │ ├── Icon-Small-40@2x.png │ ├── Icon-Small-40@3x.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ ├── Icon-Small@3x.png │ └── LaunchScreen.storyboard ├── XamarinFormsSample.iOS.csproj ├── iTunesArtwork ├── iTunesArtwork@2x └── packages.config └── XamarinFormsSample ├── App.xaml ├── App.xaml.cs ├── ViewModels ├── AboutViewModel.cs └── MainViewModel.cs ├── Views ├── AboutView.xaml ├── AboutView.xaml.cs ├── MainView.xaml ├── MainView.xaml.cs ├── ModalView.xaml └── ModalView.xaml.cs ├── XamarinFormsSample.projitems └── XamarinFormsSample.shproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | build/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | 28 | # MSTest test Results 29 | [Tt]est[Rr]esult*/ 30 | [Bb]uild[Ll]og.* 31 | 32 | # NUNIT 33 | *.VisualState.xml 34 | TestResult.xml 35 | 36 | # Build Results of an ATL Project 37 | [Dd]ebugPS/ 38 | [Rr]eleasePS/ 39 | dlldata.c 40 | 41 | # DNX 42 | project.lock.json 43 | artifacts/ 44 | 45 | *_i.c 46 | *_p.c 47 | *_i.h 48 | *.ilk 49 | *.meta 50 | *.obj 51 | *.pch 52 | *.pdb 53 | *.pgc 54 | *.pgd 55 | *.rsp 56 | *.sbr 57 | *.tlb 58 | *.tli 59 | *.tlh 60 | *.tmp 61 | *.tmp_proj 62 | *.log 63 | *.vspscc 64 | *.vssscc 65 | .builds 66 | *.pidb 67 | *.svclog 68 | *.scc 69 | 70 | # Chutzpah Test files 71 | _Chutzpah* 72 | 73 | # Visual C++ cache files 74 | ipch/ 75 | *.aps 76 | *.ncb 77 | *.opensdf 78 | *.sdf 79 | *.cachefile 80 | 81 | # Visual Studio profiler 82 | *.psess 83 | *.vsp 84 | *.vspx 85 | 86 | # TFS 2012 Local Workspace 87 | $tf/ 88 | 89 | # Guidance Automation Toolkit 90 | *.gpState 91 | 92 | # ReSharper is a .NET coding add-in 93 | _ReSharper*/ 94 | *.[Rr]e[Ss]harper 95 | *.DotSettings.user 96 | 97 | # JustCode is a .NET coding add-in 98 | .JustCode 99 | 100 | # TeamCity is a build add-in 101 | _TeamCity* 102 | 103 | # DotCover is a Code Coverage Tool 104 | *.dotCover 105 | 106 | # NCrunch 107 | _NCrunch_* 108 | .*crunch*.local.xml 109 | 110 | # MightyMoose 111 | *.mm.* 112 | AutoTest.Net/ 113 | 114 | # Web workbench (sass) 115 | .sass-cache/ 116 | 117 | # Installshield output folder 118 | [Ee]xpress/ 119 | 120 | # DocProject is a documentation generator add-in 121 | DocProject/buildhelp/ 122 | DocProject/Help/*.HxT 123 | DocProject/Help/*.HxC 124 | DocProject/Help/*.hhc 125 | DocProject/Help/*.hhk 126 | DocProject/Help/*.hhp 127 | DocProject/Help/Html2 128 | DocProject/Help/html 129 | 130 | # Click-Once directory 131 | publish/ 132 | 133 | # Publish Web Output 134 | *.[Pp]ublish.xml 135 | *.azurePubxml 136 | ## TODO: Comment the next line if you want to checkin your 137 | ## web deploy settings but do note that will include unencrypted 138 | ## passwords 139 | #*.pubxml 140 | 141 | *.publishproj 142 | 143 | # NuGet Packages 144 | *.nupkg 145 | # The packages folder can be ignored because of Package Restore 146 | **/packages/* 147 | # except build/, which is used as an MSBuild target. 148 | !**/packages/build/ 149 | # Uncomment if necessary however generally it will be regenerated when needed 150 | #!**/packages/repositories.config 151 | 152 | # Windows Azure Build Output 153 | csx/ 154 | *.build.csdef 155 | 156 | # Windows Store app package directory 157 | AppPackages/ 158 | 159 | # Visual Studio cache files 160 | # files ending in .cache can be ignored 161 | *.[Cc]ache 162 | # but keep track of directories ending in .cache 163 | !*.[Cc]ache/ 164 | 165 | # Others 166 | ClientBin/ 167 | [Ss]tyle[Cc]op.* 168 | ~$* 169 | *~ 170 | *.dbmdl 171 | *.dbproj.schemaview 172 | *.pfx 173 | *.publishsettings 174 | node_modules/ 175 | orleans.codegen.cs 176 | 177 | # RIA/Silverlight projects 178 | Generated_Code/ 179 | 180 | # Backup & report files from converting an old project file 181 | # to a newer Visual Studio version. Backup files are not needed, 182 | # because we have git ;-) 183 | _UpgradeReport_Files/ 184 | Backup*/ 185 | UpgradeLog*.XML 186 | UpgradeLog*.htm 187 | 188 | # SQL Server files 189 | *.mdf 190 | *.ldf 191 | 192 | # Business Intelligence projects 193 | *.rdl.data 194 | *.bim.layout 195 | *.bim_*.settings 196 | 197 | # Microsoft Fakes 198 | FakesAssemblies/ 199 | 200 | # Node.js Tools for Visual Studio 201 | .ntvs_analysis.dat 202 | 203 | # Visual Studio 6 build log 204 | *.plg 205 | 206 | # Visual Studio 6 workspace options file 207 | *.opt 208 | 209 | # LightSwitch generated files 210 | GeneratedArtifacts/ 211 | _Pvt_Extensions/ 212 | ModelManifest.xml 213 | *.bak 214 | -------------------------------------------------------------------------------- /CreatePackages.ps1: -------------------------------------------------------------------------------- 1 | c:\nuget.exe pack MvvmLightNavigationForms.nuspec -OutputDirectory Export 2 | c:\nuget.exe pack MvvmLightNavigationExtension.nuspec -OutputDirectory Export -------------------------------------------------------------------------------- /MvvmLight.XamarinForms.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | MvvmLight.XamarinForms 5 | 1.0.1 6 | MvvmLight for Xamarin.Forms 7 | Daniel Hindrikes 8 | http://opensource.org/licenses/MIT 9 | https://github.com/dhindrik/MvvmLightNavigationExtension 10 | false 11 | INavigationService and IDialogService implemention for Xamarin.Forms 12 | MIT license 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /MvvmLight.XamarinForms/DialogService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using GalaSoft.MvvmLight.Views; 7 | 8 | namespace MvvmLight.XamarinForms 9 | { 10 | public class DialogService : IDialogService 11 | { 12 | public async Task ShowError(Exception error, string title, string buttonText, Action afterHideCallback) 13 | { 14 | await NavigationService.Page.DisplayAlert(title, error.Message, buttonText); 15 | 16 | if (afterHideCallback != null) 17 | { 18 | afterHideCallback(); 19 | } 20 | } 21 | 22 | public async Task ShowError(string message, string title, string buttonText, Action afterHideCallback) 23 | { 24 | await NavigationService.Page.DisplayAlert(title, message, buttonText); 25 | 26 | if (afterHideCallback != null) 27 | { 28 | afterHideCallback(); 29 | } 30 | } 31 | 32 | public async Task ShowMessage(string message, string title) 33 | { 34 | await NavigationService.Page.DisplayAlert(title, message, "OK"); 35 | } 36 | 37 | public async Task ShowMessage(string message, string title, string buttonText, Action afterHideCallback) 38 | { 39 | await NavigationService.Page.DisplayAlert(title, message, buttonText); 40 | 41 | if (afterHideCallback != null) 42 | { 43 | afterHideCallback(); 44 | } 45 | } 46 | 47 | public async Task ShowMessage(string message, string title, string buttonConfirmText, string buttonCancelText, Action afterHideCallback) 48 | { 49 | var result = await NavigationService.Page.DisplayAlert(title, message, buttonConfirmText, buttonCancelText); 50 | 51 | if (afterHideCallback != null) 52 | { 53 | afterHideCallback(result); 54 | } 55 | 56 | return result; 57 | } 58 | 59 | public async Task ShowMessageBox(string message, string title) 60 | { 61 | await NavigationService.Page.DisplayAlert(title, message, "OK"); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /MvvmLight.XamarinForms/MvvmLight.XamarinForms.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard1.0 5 | 6 | portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20 7 | 8 | 2.0.1-pre1 9 | Daniel Hindrikes 10 | 11 | MvvmLight for Xamarin.Forms 12 | INavigationService and IDialogService implemention for Xamarin.Forms 13 | https://opensource.org/licenses/MIT 14 | Daniel Hindrikes 15 | https://github.com/dhindrik/MvvmLightNavigationExtension 16 | https://github.com/dhindrik/MvvmLightNavigationExtension 17 | GIT 18 | Xamarin 19 | Converted to .NET standard 20 | true 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /MvvmLight.XamarinForms/NavigationService.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using MvvmLightNavigationExtension; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using TinyNavigationHelper.Forms; 9 | using Xamarin.Forms; 10 | 11 | namespace MvvmLight.XamarinForms 12 | { 13 | public class NavigationService : INavigationService, INavigationServiceExtension 14 | { 15 | internal static Page Page { get { return _app.MainPage; } } 16 | 17 | private static Application _app; 18 | 19 | private FormsNavigationHelper _navigation; 20 | 21 | private Stack _navigationStack = new Stack(); 22 | public void Initialize(Application app) 23 | { 24 | _app = app; 25 | _navigation = new FormsNavigationHelper(app); 26 | 27 | NavigationServiceExtension.Current = this; 28 | 29 | 30 | } 31 | 32 | public void Configure(string key, Type type) 33 | { 34 | _navigation.RegisterView(key, type); 35 | } 36 | 37 | public string CurrentPageKey 38 | { 39 | get { return _navigationStack.Peek(); } 40 | } 41 | 42 | public void CloseModal() 43 | { 44 | _navigation.CloseModalAsync(); 45 | } 46 | 47 | public void GoBack() 48 | { 49 | _navigationStack.Pop(); 50 | _navigation.BackAsync(); 51 | } 52 | 53 | public void NavigateTo(string pageKey) 54 | { 55 | NavigateTo(pageKey, null); 56 | } 57 | 58 | public void NavigateTo(string pageKey, object parameter) 59 | { 60 | _navigation.NavigateToAsync(pageKey, parameter); 61 | 62 | _navigationStack.Push(pageKey); 63 | } 64 | 65 | public void OpenModal(string key) 66 | { 67 | OpenModal(key, null); 68 | } 69 | 70 | public void OpenModal(string key, object parameter) 71 | { 72 | _navigation.OpenModalAsync(key, parameter); 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /MvvmLightNavigation/MvvmLightNavigation/INavigationExtension.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MvvmLightNavigationExtension 8 | { 9 | public interface INavigationServiceExtension 10 | { 11 | void OpenModal(string key); 12 | void OpenModal(string key, object parameter); 13 | void CloseModal(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /MvvmLightNavigation/MvvmLightNavigation/MvvmLightNavigationExtension.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 7 | {E479F480-0834-482D-AC0B-17DE833B925F} 8 | Library 9 | MvvmLightNavigationExtension 10 | MvvmLightNavigationExtension 11 | v4.5 12 | Profile259 13 | 10.0 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug 20 | DEBUG; 21 | prompt 22 | 4 23 | false 24 | 25 | 26 | full 27 | true 28 | bin\Release 29 | prompt 30 | 4 31 | false 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | ..\..\packages\MvvmLightLibs.5.2.0.0\lib\portable-net45+wp8+wpa81+netcore45+monoandroid1+xamarin.ios10\GalaSoft.MvvmLight.dll 41 | True 42 | 43 | 44 | ..\..\packages\MvvmLightLibs.5.2.0.0\lib\portable-net45+wp8+wpa81+netcore45+monoandroid1+xamarin.ios10\GalaSoft.MvvmLight.Extras.dll 45 | True 46 | 47 | 48 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll 49 | True 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /MvvmLightNavigation/MvvmLightNavigation/NavigationServiceExtension.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using Microsoft.Practices.ServiceLocation; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace MvvmLightNavigationExtension 10 | { 11 | public static class NavigationServiceExtension 12 | { 13 | public static INavigationServiceExtension Current { get; set; } 14 | 15 | public static void OpenModal(this INavigationService navigationService, string key) 16 | { 17 | Current.OpenModal(key); 18 | } 19 | 20 | public static void OpenModal(this INavigationService navigationService, string key, object parameter) 21 | { 22 | Current.OpenModal(key, parameter); 23 | } 24 | 25 | public static void CloseModal(this INavigationService navigationService) 26 | { 27 | Current.CloseModal(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /MvvmLightNavigation/MvvmLightNavigation/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // Information about this assembly is defined by the following attributes. 5 | // Change them to the values specific to your project. 6 | 7 | [assembly: AssemblyTitle("MvvmLightNavigation")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("")] 12 | [assembly: AssemblyCopyright("joe")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 | 20 | [assembly: AssemblyVersion("1.0.*")] 21 | 22 | // The following attributes are used to specify the signing key for the assembly, 23 | // if desired. See the Mono documentation for more information about signing. 24 | 25 | //[assembly: AssemblyDelaySign(false)] 26 | //[assembly: AssemblyKeyFile("")] 27 | 28 | -------------------------------------------------------------------------------- /MvvmLightNavigation/MvvmLightNavigation/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/MvvmLightNavigationExtension.Droid.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {16235605-8216-4FF1-95CE-DD375EE028A4} 9 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Library 11 | Properties 12 | MvvmLightNavigationExtension.Droid 13 | MvvmLightNavigationExtension.Droid 14 | 512 15 | Resources\Resource.Designer.cs 16 | Off 17 | True 18 | v7.1 19 | 20 | 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | 37 | 38 | 39 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\monoandroid1\GalaSoft.MvvmLight.dll 40 | 41 | 42 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\monoandroid1\GalaSoft.MvvmLight.Platform.dll 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | {e479f480-0834-482d-ac0b-17de833b925f} 67 | MvvmLightNavigationExtension 68 | 69 | 70 | 71 | 78 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/NavigationServiceExtension.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Android.App; 7 | using Android.Content; 8 | using Android.OS; 9 | using Android.Runtime; 10 | using Android.Views; 11 | using Android.Widget; 12 | using GalaSoft.MvvmLight.Views; 13 | using System.Reflection; 14 | 15 | namespace MvvmLightNavigationExtension.Droid 16 | { 17 | public class NavigationServiceExtension : NavigationService, INavigationServiceExtension 18 | { 19 | private Dictionary _pageKeys = new Dictionary(); 20 | 21 | private const string ParameterKeyName = "ParameterKey"; 22 | 23 | public void Initialize() 24 | { 25 | MvvmLightNavigationExtension.NavigationServiceExtension.Current = this; 26 | } 27 | 28 | public void CloseModal() 29 | { 30 | ActivityBase.CurrentActivity.Finish (); 31 | } 32 | 33 | public void OpenModal(string key) 34 | { 35 | var activityType = _pageKeys[key]; 36 | 37 | var intent = new Intent(Application.Context, activityType); 38 | intent.SetFlags(ActivityFlags.NoHistory); 39 | intent.SetFlags (ActivityFlags.NewTask); 40 | 41 | Application.Context.StartActivity(intent); 42 | } 43 | 44 | public void OpenModal(string key, object parameter) 45 | { 46 | var activityType = _pageKeys[key]; 47 | 48 | var intent = new Intent(Application.Context, activityType); 49 | intent.SetFlags(ActivityFlags.NoHistory); 50 | intent.SetFlags(ActivityFlags.NewTask); 51 | 52 | var field = this.GetType().BaseType.GetField("_parametersByKey", BindingFlags.Instance | BindingFlags.NonPublic); 53 | 54 | var parameters = field.GetValue(this) as Dictionary; 55 | 56 | var guid = Guid.NewGuid().ToString(); 57 | parameters.Add(guid, parameter); 58 | intent.PutExtra(ParameterKeyName, guid); 59 | 60 | Application.Context.StartActivity(intent); 61 | } 62 | 63 | public new void Configure(string key, Type activityType) 64 | { 65 | base.Configure(key, activityType); 66 | 67 | _pageKeys.Add(key, activityType); 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("MvvmLightNavigationExtension.Droid")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("MvvmLightNavigationExtension.Droid")] 14 | [assembly: AssemblyCopyright("Copyright © 2015")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.axml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable/ 12 | icon.png 13 | 14 | layout/ 15 | main.axml 16 | 17 | values/ 18 | strings.xml 19 | 20 | In order to get the build system to recognize Android resources, set the build action to 21 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 22 | instead operate on resource IDs. When you compile an Android application that uses resources, 23 | the build system will package the resources for distribution and generate a class called "R" 24 | (this is an Android convention) that contains the tokens for each one of the resources 25 | included. For example, for the above Resources layout, this is what the R class would expose: 26 | 27 | public class R { 28 | public class drawable { 29 | public const int icon = 0x123; 30 | } 31 | 32 | public class layout { 33 | public const int main = 0x456; 34 | } 35 | 36 | public class strings { 37 | public const int first_string = 0xabc; 38 | public const int second_string = 0xbcd; 39 | } 40 | } 41 | 42 | You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main 43 | to reference the layout/main.axml file, or R.strings.first_string to reference the first 44 | string in the dictionary file values/strings.xml. -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/Resources/Resource.Designer.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable 1591 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.42000 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | [assembly: global::Android.Runtime.ResourceDesignerAttribute("MvvmLightNavigationExtension.Droid.Resource", IsApplication=false)] 13 | 14 | namespace MvvmLightNavigationExtension.Droid 15 | { 16 | 17 | 18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] 19 | public partial class Resource 20 | { 21 | 22 | static Resource() 23 | { 24 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 25 | } 26 | 27 | public partial class Attribute 28 | { 29 | 30 | static Attribute() 31 | { 32 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 33 | } 34 | 35 | private Attribute() 36 | { 37 | } 38 | } 39 | 40 | public partial class String 41 | { 42 | 43 | // aapt resource value: 0x7f020001 44 | public static int ApplicationName = 2130837505; 45 | 46 | // aapt resource value: 0x7f020000 47 | public static int Hello = 2130837504; 48 | 49 | static String() 50 | { 51 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 52 | } 53 | 54 | private String() 55 | { 56 | } 57 | } 58 | } 59 | } 60 | #pragma warning restore 1591 61 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/Resources/Values/Strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World, Click Me! 4 | $projectname$ 5 | 6 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Droid/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Forms/DialogService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using GalaSoft.MvvmLight.Views; 7 | 8 | namespace MvvmLight.XamarinForms 9 | { 10 | public class DialogService : IDialogService 11 | { 12 | public async Task ShowError(Exception error, string title, string buttonText, Action afterHideCallback) 13 | { 14 | await NavigationService.NavigationPage.DisplayAlert(title, error.Message, buttonText); 15 | 16 | if (afterHideCallback != null) 17 | { 18 | afterHideCallback(); 19 | } 20 | } 21 | 22 | public async Task ShowError(string message, string title, string buttonText, Action afterHideCallback) 23 | { 24 | await NavigationService.NavigationPage.DisplayAlert(title, message, buttonText); 25 | 26 | if (afterHideCallback != null) 27 | { 28 | afterHideCallback(); 29 | } 30 | } 31 | 32 | public async Task ShowMessage(string message, string title) 33 | { 34 | await NavigationService.NavigationPage.DisplayAlert(title, message, "OK"); 35 | } 36 | 37 | public async Task ShowMessage(string message, string title, string buttonText, Action afterHideCallback) 38 | { 39 | await NavigationService.NavigationPage.DisplayAlert(title, message, buttonText); 40 | 41 | if (afterHideCallback != null) 42 | { 43 | afterHideCallback(); 44 | } 45 | } 46 | 47 | public async Task ShowMessage(string message, string title, string buttonConfirmText, string buttonCancelText, Action afterHideCallback) 48 | { 49 | var result = await NavigationService.NavigationPage.DisplayAlert(title, message, buttonConfirmText, buttonCancelText); 50 | 51 | if (afterHideCallback != null) 52 | { 53 | afterHideCallback(result); 54 | } 55 | 56 | return result; 57 | } 58 | 59 | public async Task ShowMessageBox(string message, string title) 60 | { 61 | await NavigationService.NavigationPage.DisplayAlert(title, message, "OK"); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Forms/MvvmLight.Extension.Forms.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 10.0 6 | Debug 7 | AnyCPU 8 | {73A56B39-B565-4D02-91F8-BF4224B36BEB} 9 | Library 10 | Properties 11 | MvvmLight.XamarinForms 12 | MvvmLight.XamarinForms 13 | en-US 14 | 512 15 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 16 | Profile259 17 | v4.5 18 | 19 | 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | ..\packages\MvvmLightLibs.5.2.0.0\lib\portable-net45+wp8+wpa81+netcore45+monoandroid1+xamarin.ios10\GalaSoft.MvvmLight.dll 46 | True 47 | 48 | 49 | ..\packages\MvvmLightLibs.5.2.0.0\lib\portable-net45+wp8+wpa81+netcore45+monoandroid1+xamarin.ios10\GalaSoft.MvvmLight.Extras.dll 50 | True 51 | 52 | 53 | ..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll 54 | True 55 | 56 | 57 | ..\packages\MvvmLightNavigationServiceExtension.1.2.0\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\MvvmLightNavigationExtension.dll 58 | True 59 | 60 | 61 | ..\packages\Xamarin.Forms.2.3.3.180\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll 62 | True 63 | 64 | 65 | ..\packages\Xamarin.Forms.2.3.3.180\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll 66 | True 67 | 68 | 69 | ..\packages\Xamarin.Forms.2.3.3.180\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll 70 | True 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 81 | 82 | 83 | 84 | 91 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Forms/NavigationService.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using MvvmLightNavigationExtension; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using Xamarin.Forms; 9 | 10 | namespace MvvmLight.XamarinForms 11 | { 12 | public class NavigationService : INavigationService, INavigationServiceExtension 13 | { 14 | internal static NavigationPage NavigationPage { get; private set; } 15 | 16 | private FormsNavigationHelper 17 | 18 | private Stack _navigationStack = new Stack(); 19 | public void Initialize(NavigationPage navigationPage) 20 | { 21 | 22 | NavigationServiceExtension.Current = this; 23 | 24 | } 25 | 26 | public void Configure(string key, Type type) 27 | { 28 | lock(_pages) 29 | { 30 | if(_pages.ContainsKey(key)) 31 | { 32 | _pages[key] = type; 33 | } 34 | else 35 | { 36 | _pages.Add(key, type); 37 | } 38 | 39 | } 40 | } 41 | 42 | public string CurrentPageKey 43 | { 44 | get { return _navigationStack.Peek(); } 45 | } 46 | 47 | public void CloseModal() 48 | { 49 | _navigation.PopModalAsync(); 50 | } 51 | 52 | public void GoBack() 53 | { 54 | _navigationStack.Pop(); 55 | _navigation.PopAsync(); 56 | } 57 | 58 | public void NavigateTo(string pageKey) 59 | { 60 | NavigateTo(pageKey, null); 61 | } 62 | 63 | public void NavigateTo(string pageKey, object parameter) 64 | { 65 | 66 | 67 | _navigationStack.Push(pageKey); 68 | } 69 | 70 | public void OpenModal(string key) 71 | { 72 | 73 | } 74 | 75 | public void OpenModal(string key, object parameter) 76 | { 77 | 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Forms/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Resources; 2 | using System.Reflection; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("MvvmLightNavigationExtension.Forms")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("MvvmLightNavigationExtension.Forms")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: NeutralResourcesLanguage("en")] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Forms/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.NetStd/INavigationExtension.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MvvmLightNavigationExtension 8 | { 9 | public interface INavigationServiceExtension 10 | { 11 | void OpenModal(string key); 12 | void OpenModal(string key, object parameter); 13 | void CloseModal(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.NetStd/MvvmLightNavigationExtension.NetStd.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard1.0 5 | MvvmLightNavigationExtension 6 | MvvmLightNavigationExtension 7 | 2.0.1-pre1 8 | Extends the navigation service in MvvmLight with a OpenModal method. 9 | MvvmLight NavigationService Extension 10 | 11 | Daniel Hindrikes 12 | Converted to .net standard 13 | https://github.com/dhindrik/MvvmLightNavigationExtension 14 | https://github.com/dhindrik/MvvmLightNavigationExtension 15 | GIT 16 | https://opensource.org/licenses/MIT 17 | Daniel Hindrikes 18 | true 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.NetStd/NavigationServiceExtension.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MvvmLightNavigationExtension 9 | { 10 | public static class NavigationServiceExtension 11 | { 12 | public static INavigationServiceExtension Current { get; set; } 13 | 14 | public static void OpenModal(this INavigationService navigationService, string key) 15 | { 16 | Current.OpenModal(key); 17 | } 18 | 19 | public static void OpenModal(this INavigationService navigationService, string key, object parameter) 20 | { 21 | Current.OpenModal(key, parameter); 22 | } 23 | 24 | public static void CloseModal(this INavigationService navigationService) 25 | { 26 | Current.CloseModal(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.Droid/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.Droid/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Android.App; 3 | using Android.Content; 4 | using Android.Runtime; 5 | using Android.Views; 6 | using Android.Widget; 7 | using Android.OS; 8 | using GalaSoft.MvvmLight.Views; 9 | using MvvmLightNavigationExtension.Sample.ViewModels; 10 | using GalaSoft.MvvmLight.Helpers; 11 | using GalaSoft.MvvmLight.Ioc; 12 | 13 | namespace MvvmLightNavigationExtension.Sample.Droid 14 | { 15 | [Activity(Label = "MvvmLightNavigationExtension.Sample.Droid", MainLauncher = true, Icon = "@drawable/icon")] 16 | public class MainActivity : ActivityBase 17 | { 18 | public MainViewModel ViewModel { get; private set; } 19 | 20 | public Button _button; 21 | 22 | 23 | private bool _isInitialized = false; 24 | 25 | protected override void OnCreate(Bundle bundle) 26 | { 27 | base.OnCreate(bundle); 28 | 29 | if (!_isInitialized) 30 | { 31 | var nav = new MvvmLightNavigationExtension.Droid.NavigationServiceExtension(); 32 | nav.Initialize(); 33 | nav.Configure("Page1", typeof(MainActivity)); 34 | nav.Configure("Page2", typeof(PageActivity)); 35 | nav.Configure("Page3", typeof(Page3Activity)); 36 | 37 | SimpleIoc.Default.Register(() => nav); 38 | SimpleIoc.Default.Register(() => nav); 39 | 40 | SimpleIoc.Default.Register(); 41 | SimpleIoc.Default.Register(); 42 | 43 | _isInitialized = true; 44 | 45 | ViewModel = SimpleIoc.Default.GetInstance(); 46 | } 47 | 48 | 49 | 50 | // Set our view from the "main" layout resource 51 | SetContentView(Resource.Layout.Main); 52 | 53 | 54 | 55 | // Get our button from the layout resource, 56 | // and attach an event to it 57 | _button = FindViewById 41 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 78 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/Page3Controller.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | using GalaSoft.MvvmLight.Views; 3 | using MvvmLightNavigationExtension.Sample.ViewModels; 4 | using System; 5 | using UIKit; 6 | using GalaSoft.MvvmLight.Helpers; 7 | using GalaSoft.MvvmLight.Ioc; 8 | 9 | namespace MvvmLightNavigationExtension.Sample.iOS 10 | { 11 | public partial class Page3Controller : ControllerBase 12 | { 13 | public Page3Controller (IntPtr handle) : base (handle) 14 | { 15 | 16 | } 17 | 18 | public PageViewModel ViewModel { get; private set; } 19 | 20 | public override void ViewDidLoad() 21 | { 22 | base.ViewDidLoad(); 23 | 24 | ViewModel = SimpleIoc.Default.GetInstance(); 25 | 26 | Text.Text = "Parameter: " + NavigationParameter.ToString(); 27 | 28 | Close.SetCommand("TouchUpInside", ViewModel.Close); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/Page3Controller.designer.cs: -------------------------------------------------------------------------------- 1 | // WARNING 2 | // 3 | // This file has been generated automatically by Xamarin Studio from the outlets and 4 | // actions declared in your storyboard file. 5 | // Manual changes to this file will not be maintained. 6 | // 7 | using Foundation; 8 | using System; 9 | using System.CodeDom.Compiler; 10 | using UIKit; 11 | 12 | namespace MvvmLightNavigationExtension.Sample.iOS 13 | { 14 | [Register ("Page3Controller")] 15 | partial class Page3Controller 16 | { 17 | [Outlet] 18 | [GeneratedCode ("iOS Designer", "1.0")] 19 | UIKit.UIButton Close { get; set; } 20 | 21 | [Outlet] 22 | [GeneratedCode ("iOS Designer", "1.0")] 23 | UIKit.UITextField Text { get; set; } 24 | 25 | void ReleaseDesignerOutlets () 26 | { 27 | if (Close != null) { 28 | Close.Dispose (); 29 | Close = null; 30 | } 31 | 32 | if (Text != null) { 33 | Text.Dispose (); 34 | Text = null; 35 | } 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/PageController.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | using GalaSoft.MvvmLight.Views; 3 | using MvvmLightNavigationExtension.Sample.ViewModels; 4 | using System; 5 | using System.CodeDom.Compiler; 6 | using UIKit; 7 | using GalaSoft.MvvmLight.Helpers; 8 | 9 | namespace MvvmLightNavigationExtension.Sample.iOS 10 | { 11 | partial class PageController : ControllerBase 12 | { 13 | public PageController (IntPtr handle) : base (handle) 14 | { 15 | } 16 | 17 | 18 | public PageViewModel ViewModel { get; private set; } 19 | 20 | public override void ViewDidLoad() 21 | { 22 | base.ViewDidLoad(); 23 | 24 | ViewModel = SimpleIoc.Default.GetInstance(); 25 | 26 | Close.SetCommand("TouchUpInside", ViewModel.Close); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/PageController.designer.cs: -------------------------------------------------------------------------------- 1 | // WARNING 2 | // 3 | // This file has been generated automatically by Xamarin Studio from the outlets and 4 | // actions declared in your storyboard file. 5 | // Manual changes to this file will not be maintained. 6 | // 7 | using Foundation; 8 | using System; 9 | using System.CodeDom.Compiler; 10 | using UIKit; 11 | 12 | namespace MvvmLightNavigationExtension.Sample.iOS 13 | { 14 | [Register ("PageController")] 15 | partial class PageController 16 | { 17 | [Outlet] 18 | [GeneratedCode ("iOS Designer", "1.0")] 19 | UIButton Close { get; set; } 20 | 21 | void ReleaseDesignerOutlets () 22 | { 23 | if (Close != null) { 24 | Close.Dispose (); 25 | Close = null; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MvvmLightNavigationExtension.Sample.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MvvmLightNavigationExtension.Sample.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("0e45b764-58aa-446f-b82d-830e5db3baf5")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/Resources/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 21 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/Sample.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | {0E45B764-58AA-446F-B82D-830E5DB3BAF5} 7 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | Exe 9 | MvvmLightNavigationExtension.Sample.iOS 10 | Resources 11 | SampleiOS 12 | 13 | 14 | true 15 | full 16 | false 17 | bin\iPhoneSimulator\Debug 18 | DEBUG 19 | prompt 20 | 4 21 | false 22 | i386 23 | None 24 | true 25 | 26 | 27 | none 28 | true 29 | bin\iPhoneSimulator\Release 30 | prompt 31 | 4 32 | None 33 | i386 34 | false 35 | 36 | 37 | true 38 | full 39 | false 40 | bin\iPhone\Debug 41 | DEBUG 42 | prompt 43 | 4 44 | false 45 | ARMv7, ARM64 46 | Entitlements.plist 47 | iPhone Developer 48 | true 49 | 50 | 51 | none 52 | true 53 | bin\iPhone\Release 54 | prompt 55 | 4 56 | Entitlements.plist 57 | ARMv7, ARM64 58 | false 59 | iPhone Developer 60 | 61 | 62 | none 63 | True 64 | bin\iPhone\Ad-Hoc 65 | prompt 66 | 4 67 | False 68 | ARMv7, ARM64 69 | Entitlements.plist 70 | True 71 | Automatic:AdHoc 72 | iPhone Distribution 73 | 74 | 75 | none 76 | True 77 | bin\iPhone\AppStore 78 | prompt 79 | 4 80 | False 81 | ARMv7, ARM64 82 | Entitlements.plist 83 | Automatic:AppStore 84 | iPhone Distribution 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | Page3Controller.cs 95 | 96 | 97 | 98 | PageController.cs 99 | 100 | 101 | 102 | 103 | 104 | 105 | ViewController.cs 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.dll 114 | 115 | 116 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | {64fc04a1-ef38-4780-befc-e7b063631b24} 129 | MvvmLightNavigationExtension.iOS 130 | false 131 | false 132 | 133 | 134 | {a7016889-b81a-491e-8e29-583a81ec30f5} 135 | MvvmLightNavigationExtension.NetStd 136 | 137 | 138 | {e77c017d-cba6-4eed-9c89-93cb8d605086} 139 | Sample 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/ViewController.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using MvvmLightNavigationExtension.Sample.ViewModels; 3 | using System; 4 | using GalaSoft.MvvmLight.Helpers; 5 | 6 | using UIKit; 7 | using GalaSoft.MvvmLight.Ioc; 8 | 9 | namespace MvvmLightNavigationExtension.Sample.iOS 10 | { 11 | public partial class ViewController : ControllerBase 12 | { 13 | public MainViewModel ViewModel { get; private set; } 14 | 15 | public ViewController(IntPtr handle) : base(handle) 16 | { 17 | } 18 | 19 | public override void ViewDidLoad() 20 | { 21 | base.ViewDidLoad(); 22 | 23 | ViewModel = SimpleIoc.Default.GetInstance(); 24 | 25 | Navigate.SetCommand("TouchUpInside", ViewModel.Goto); 26 | Button2.SetCommand("TouchUpInside", ViewModel.GotoWithParameter); 27 | 28 | Navigate.TouchUpInside += Navigate_TouchUpInside; 29 | } 30 | 31 | private void Navigate_TouchUpInside(object sender, EventArgs e) 32 | { 33 | 34 | } 35 | 36 | public override void DidReceiveMemoryWarning() 37 | { 38 | base.DidReceiveMemoryWarning(); 39 | // Release any cached data, images, etc that aren't in use. 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/ViewController.designer.cs: -------------------------------------------------------------------------------- 1 | // WARNING 2 | // 3 | // This file has been generated automatically by Xamarin Studio from the outlets and 4 | // actions declared in your storyboard file. 5 | // Manual changes to this file will not be maintained. 6 | // 7 | using Foundation; 8 | using System; 9 | using System.CodeDom.Compiler; 10 | using UIKit; 11 | 12 | namespace MvvmLightNavigationExtension.Sample.iOS 13 | { 14 | [Register ("ViewController")] 15 | partial class ViewController 16 | { 17 | [Outlet] 18 | [GeneratedCode ("iOS Designer", "1.0")] 19 | UIKit.UIButton Button2 { get; set; } 20 | 21 | [Outlet] 22 | [GeneratedCode ("iOS Designer", "1.0")] 23 | UIKit.UIButton Navigate { get; set; } 24 | 25 | void ReleaseDesignerOutlets () 26 | { 27 | if (Button2 != null) { 28 | Button2.Dispose (); 29 | Button2 = null; 30 | } 31 | 32 | if (Navigate != null) { 33 | Navigate.Dispose (); 34 | Navigate = null; 35 | } 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample.iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Resources; 2 | using System.Reflection; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("MvvmLightNavigationExtension.Sample")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("MvvmLightNavigationExtension.Sample")] 14 | [assembly: AssemblyCopyright("Copyright © 2015")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: NeutralResourcesLanguage("en")] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample/Sample.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 10.0 6 | Debug 7 | AnyCPU 8 | {E77C017D-CBA6-4EED-9C89-93CB8D605086} 9 | Library 10 | Properties 11 | MvvmLightNavigationExtension.Sample 12 | Sample 13 | en-US 14 | 512 15 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 16 | Profile111 17 | v4.5 18 | 19 | 20 | true 21 | full 22 | false 23 | bin\Debug\ 24 | DEBUG;TRACE 25 | prompt 26 | 4 27 | 28 | 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | {a7016889-b81a-491e-8e29-583a81ec30f5} 44 | MvvmLightNavigationExtension.NetStd 45 | 46 | 47 | 48 | 49 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\netstandard1.0\GalaSoft.MvvmLight.dll 50 | 51 | 52 | 53 | 54 | 55 | 56 | 63 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using MvvmLightNavigationExtension; 8 | using GalaSoft.MvvmLight; 9 | using GalaSoft.MvvmLight.Command; 10 | using GalaSoft.MvvmLight.Views; 11 | 12 | namespace MvvmLightNavigationExtension.Sample.ViewModels 13 | { 14 | public class MainViewModel : ViewModelBase 15 | { 16 | private INavigationService _navigationService; 17 | 18 | public MainViewModel(INavigationService navigationService) 19 | { 20 | _navigationService = navigationService; 21 | } 22 | 23 | public RelayCommand Goto 24 | { 25 | get 26 | { 27 | return new RelayCommand(() => 28 | { 29 | _navigationService.OpenModal("Page2"); 30 | }); 31 | } 32 | } 33 | 34 | public RelayCommand GotoWithParameter 35 | { 36 | get 37 | { 38 | return new RelayCommand(() => 39 | { 40 | _navigationService.OpenModal("Page3", "hej"); 41 | }); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample/ViewModels/PageViewModel.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight; 2 | using GalaSoft.MvvmLight.Command; 3 | using GalaSoft.MvvmLight.Views; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace MvvmLightNavigationExtension.Sample.ViewModels 11 | { 12 | public class PageViewModel : ViewModelBase 13 | { 14 | private INavigationService _navigationService; 15 | 16 | public PageViewModel(INavigationService navigationService) 17 | { 18 | _navigationService = navigationService; 19 | } 20 | 21 | public RelayCommand Close 22 | { 23 | get 24 | { 25 | return new RelayCommand(() => 26 | { 27 | _navigationService.CloseModal(); 28 | }); 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.Sample/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.iOS/MvvmLightNavigationExtension.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {64FC04A1-EF38-4780-BEFC-E7B063631B24} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Library 11 | MvvmLightNavigationExtension.iOS 12 | Resources 13 | MvvmLightNavigationExtension.iOS 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\iPhone\Debug 20 | DEBUG 21 | prompt 22 | 4 23 | false 24 | true 25 | iPhone Developer 26 | 27 | 28 | none 29 | true 30 | bin\iPhone\Release 31 | prompt 32 | 4 33 | false 34 | iPhone Developer 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.dll 43 | 44 | 45 | ..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | {a7016889-b81a-491e-8e29-583a81ec30f5} 58 | MvvmLightNavigationExtension.NetStd 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.iOS/NavigationServiceExtension.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight.Views; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using UIKit; 7 | 8 | namespace MvvmLightNavigationExtension.iOS 9 | { 10 | public class NavigationServiceExtension : NavigationService, INavigationServiceExtension 11 | { 12 | private Dictionary _pageKeys = new Dictionary(); 13 | 14 | public new void Initialize(UINavigationController navigation) 15 | { 16 | base.Initialize(navigation); 17 | 18 | MvvmLightNavigationExtension.NavigationServiceExtension.Current = this; 19 | } 20 | 21 | public void OpenModal(string key) 22 | { 23 | 24 | var navigationController = UIApplication.SharedApplication.Windows[0].RootViewController; 25 | 26 | var viewController = navigationController.Storyboard.InstantiateViewController(_pageKeys[key]); 27 | 28 | navigationController.PresentModalViewController(viewController, true); 29 | } 30 | 31 | public void CloseModal() 32 | { 33 | var navigationController = UIApplication.SharedApplication.Windows[0].RootViewController; 34 | navigationController.DismissModalViewController(true); 35 | } 36 | 37 | public new void Configure(string key, string storyboardId) 38 | { 39 | base.Configure(key, storyboardId); 40 | 41 | _pageKeys.Add(key, storyboardId); 42 | } 43 | 44 | public void OpenModal(string key, object parameter) 45 | { 46 | var navigationController = UIApplication.SharedApplication.Windows[0].RootViewController; 47 | 48 | var viewController = navigationController.Storyboard.InstantiateViewController(_pageKeys[key]); 49 | 50 | var casted = viewController as ControllerBase; 51 | 52 | if(casted != null) 53 | { 54 | casted.NavigationParameter = parameter; 55 | } 56 | 57 | navigationController.PresentModalViewController(viewController, true); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MvvmLightNavigationExtension.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MvvmLightNavigationExtension.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("64fc04a1-ef38-4780-befc-e7b063631b24")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MvvmLightNavigationExtension.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MvvmLightNavigationServiceExtension 5 | 1.2.0 6 | MvvmLight NavigationService Extension 7 | Daniel Hindrikes 8 | http://opensource.org/licenses/MIT 9 | https://github.com/dhindrik/MvvmLightNavigationExtension 10 | false 11 | Extends the navigation service in MvvmLight with a OpenModal method. 12 | MIT license 13 | 14 | 1.2.0 - Open modals with parameter. 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /MvvmLightNavigationForms.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MvvmLightNavigationServiceExtension.Forms 5 | 2.0.1-pre 6 | (Deprecated)MvvmLight NavigationService Extension Xamarin Forms 7 | Daniel Hindrikes 8 | http://opensource.org/licenses/MIT 9 | https://github.com/dhindrik/MvvmLightNavigationExtension 10 | false 11 | 12 | This package is deprecasted, use MvvmLight.XamarinForms instead. 13 | 14 | MvvmLight Navigation service for Xamarin.Forms. NavigationService is also extendend with OpenModal method. 15 | 16 | MIT license 17 | 18 | 2.0.1-pre1 - Converted to .net standard. 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Nuget.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MvvmLight.XamarinForms 2 | MvvmLight.Xamarin.Forms is a package that implement INavigationService and IDialogService for Xamarin.Forms. It also extends the navigation service with a OpenModal method. 3 | 4 | Build status 5 | 6 | # MvvmLightNavigationExtension 7 | 8 | Read how to use on http://danielhindrikes.se/xamarin/mvvmlight-navigation-extension/ 9 | 10 | For Xamarin.Forms use MvvmLight.XamarinForms package. 11 | If you still using MvvmLightNavigationServiceExtension.Forms, please read this blog post: http://danielhindrikes.se/xamarin/mvvmlight-navigation-in-xamarin-forms/ 12 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content.PM; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | 10 | namespace XamarinFormsSample.Droid 11 | { 12 | [Activity (Label = "XamarinFormsSample", Icon = "@drawable/icon", Theme="@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 14 | { 15 | protected override void OnCreate (Bundle bundle) 16 | { 17 | TabLayoutResource = Resource.Layout.Tabbar; 18 | ToolbarResource = Resource.Layout.Toolbar; 19 | 20 | base.OnCreate (bundle); 21 | 22 | global::Xamarin.Forms.Forms.Init (this, bundle); 23 | LoadApplication (new XamarinFormsSample.App ()); 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("XamarinFormsSample.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("XamarinFormsSample.Android")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | 32 | // Add some common permissions, these can be removed if not needed 33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 35 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.Android/Resources/drawable/icon.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 26 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/XamarinFormsSample.Android.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {9A4B04FE-63DA-4260-9025-64E7399DC17C} 9 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Library 11 | Properties 12 | XamarinFormsSample.Droid 13 | XamarinFormsSample.Android 14 | 512 15 | true 16 | Resources\Resource.Designer.cs 17 | Off 18 | Properties\AndroidManifest.xml 19 | true 20 | v7.1 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | true 30 | full 31 | false 32 | bin\Debug\ 33 | DEBUG;TRACE 34 | prompt 35 | 4 36 | True 37 | None 38 | armeabi,armeabi-v7a,x86 39 | 40 | 41 | pdbonly 42 | true 43 | bin\Release\ 44 | TRACE 45 | prompt 46 | 4 47 | False 48 | SdkOnly 49 | 50 | 51 | 52 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\FormsViewGroup.dll 53 | 54 | 55 | ..\..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\monoandroid1\GalaSoft.MvvmLight.dll 56 | 57 | 58 | ..\..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\monoandroid1\GalaSoft.MvvmLight.Platform.dll 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | ..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll 68 | 69 | 70 | ..\..\packages\Xamarin.Android.Support.Design.23.3.0\lib\MonoAndroid43\Xamarin.Android.Support.Design.dll 71 | 72 | 73 | ..\..\packages\Xamarin.Android.Support.v4.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll 74 | 75 | 76 | ..\..\packages\Xamarin.Android.Support.v7.AppCompat.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll 77 | 78 | 79 | ..\..\packages\Xamarin.Android.Support.v7.CardView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll 80 | 81 | 82 | ..\..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll 83 | 84 | 85 | ..\..\packages\Xamarin.Android.Support.v7.RecyclerView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.RecyclerView.dll 86 | 87 | 88 | ..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll 89 | 90 | 91 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Core.dll 92 | 93 | 94 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Platform.dll 95 | 96 | 97 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll 98 | 99 | 100 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | {ade9d21a-ce7a-416c-980a-4338eb07c01c} 127 | MvvmLight.XamarinForms 128 | 129 | 130 | {a7016889-b81a-491e-8e29-583a81ec30f5} 131 | MvvmLightNavigationExtension.NetStd 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 140 | 141 | 142 | 143 | 144 | 145 | 152 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.Android/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.ApplicationModel; 7 | using Windows.ApplicationModel.Activation; 8 | using Windows.Foundation; 9 | using Windows.Foundation.Collections; 10 | using Windows.UI.Xaml; 11 | using Windows.UI.Xaml.Controls; 12 | using Windows.UI.Xaml.Controls.Primitives; 13 | using Windows.UI.Xaml.Data; 14 | using Windows.UI.Xaml.Input; 15 | using Windows.UI.Xaml.Media; 16 | using Windows.UI.Xaml.Navigation; 17 | 18 | namespace XamarinFormsSample.UWP 19 | { 20 | /// 21 | /// Provides application-specific behavior to supplement the default Application class. 22 | /// 23 | sealed partial class App : Application 24 | { 25 | /// 26 | /// Initializes the singleton application object. This is the first line of authored code 27 | /// executed, and as such is the logical equivalent of main() or WinMain(). 28 | /// 29 | public App() 30 | { 31 | this.InitializeComponent(); 32 | this.Suspending += OnSuspending; 33 | } 34 | 35 | /// 36 | /// Invoked when the application is launched normally by the end user. Other entry points 37 | /// will be used such as when the application is launched to open a specific file. 38 | /// 39 | /// Details about the launch request and process. 40 | protected override void OnLaunched(LaunchActivatedEventArgs e) 41 | { 42 | 43 | #if DEBUG 44 | if (System.Diagnostics.Debugger.IsAttached) 45 | { 46 | this.DebugSettings.EnableFrameRateCounter = true; 47 | } 48 | #endif 49 | 50 | Frame rootFrame = Window.Current.Content as Frame; 51 | 52 | // Do not repeat app initialization when the Window already has content, 53 | // just ensure that the window is active 54 | if (rootFrame == null) 55 | { 56 | // Create a Frame to act as the navigation context and navigate to the first page 57 | rootFrame = new Frame(); 58 | 59 | rootFrame.NavigationFailed += OnNavigationFailed; 60 | 61 | Xamarin.Forms.Forms.Init(e); 62 | 63 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 64 | { 65 | //TODO: Load state from previously suspended application 66 | } 67 | 68 | // Place the frame in the current Window 69 | Window.Current.Content = rootFrame; 70 | } 71 | 72 | if (rootFrame.Content == null) 73 | { 74 | // When the navigation stack isn't restored navigate to the first page, 75 | // configuring the new page by passing required information as a navigation 76 | // parameter 77 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 78 | } 79 | // Ensure the current window is active 80 | Window.Current.Activate(); 81 | } 82 | 83 | /// 84 | /// Invoked when Navigation to a certain page fails 85 | /// 86 | /// The Frame which failed navigation 87 | /// Details about the navigation failure 88 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 89 | { 90 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 91 | } 92 | 93 | /// 94 | /// Invoked when application execution is being suspended. Application state is saved 95 | /// without knowing whether the application will be terminated or resumed with the contents 96 | /// of memory still intact. 97 | /// 98 | /// The source of the suspend request. 99 | /// Details about the suspend request. 100 | private void OnSuspending(object sender, SuspendingEventArgs e) 101 | { 102 | var deferral = e.SuspendingOperation.GetDeferral(); 103 | //TODO: Save application state and stop any background activity 104 | deferral.Complete(); 105 | } 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-100.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-125.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-150.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/LockScreenLogo.scale-400.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/StoreLogo.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.UWP/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.Foundation; 7 | using Windows.Foundation.Collections; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | using Windows.UI.Xaml.Controls.Primitives; 11 | using Windows.UI.Xaml.Data; 12 | using Windows.UI.Xaml.Input; 13 | using Windows.UI.Xaml.Media; 14 | using Windows.UI.Xaml.Navigation; 15 | 16 | namespace XamarinFormsSample.UWP 17 | { 18 | public sealed partial class MainPage 19 | { 20 | public MainPage() 21 | { 22 | this.InitializeComponent(); 23 | 24 | LoadApplication(new XamarinFormsSample.App()); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | XamarinFormsSample.UWP 18 | Daniel Hindrikes 19 | Assets\StoreLogo.png 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("XamarinFormsSample.UWP")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("XamarinFormsSample.UWP")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/XamarinFormsSample.UWP.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {DB27E20F-B91E-4DC9-A214-B751FCC8718A} 8 | AppContainerExe 9 | Properties 10 | XamarinFormsSample.UWP 11 | XamarinFormsSample.UWP 12 | en-US 13 | UAP 14 | 10.0.15063.0 15 | 10.0.10586.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | XamarinFormsSample.UWP_TemporaryKey.pfx 21 | 22 | 23 | true 24 | bin\ARM\Debug\ 25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 26 | ;2008 27 | full 28 | ARM 29 | false 30 | prompt 31 | true 32 | 33 | 34 | bin\ARM\Release\ 35 | TRACE;NETFX_CORE;WINDOWS_UWP 36 | true 37 | ;2008 38 | pdbonly 39 | ARM 40 | false 41 | prompt 42 | true 43 | true 44 | 45 | 46 | true 47 | bin\x64\Debug\ 48 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 49 | ;2008 50 | full 51 | x64 52 | false 53 | prompt 54 | true 55 | 56 | 57 | bin\x64\Release\ 58 | TRACE;NETFX_CORE;WINDOWS_UWP 59 | true 60 | ;2008 61 | pdbonly 62 | x64 63 | false 64 | prompt 65 | true 66 | true 67 | 68 | 69 | true 70 | bin\x86\Debug\ 71 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 72 | ;2008 73 | full 74 | x86 75 | false 76 | prompt 77 | true 78 | 79 | 80 | bin\x86\Release\ 81 | TRACE;NETFX_CORE;WINDOWS_UWP 82 | true 83 | ;2008 84 | pdbonly 85 | x86 86 | false 87 | prompt 88 | true 89 | true 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | App.xaml 98 | 99 | 100 | MainPage.xaml 101 | 102 | 103 | 104 | 105 | 106 | Designer 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | MSBuild:Compile 143 | Designer 144 | 145 | 146 | MSBuild:Compile 147 | Designer 148 | 149 | 150 | 151 | 152 | {ade9d21a-ce7a-416c-980a-4338eb07c01c} 153 | MvvmLight.XamarinForms 154 | 155 | 156 | {a7016889-b81a-491e-8e29-583a81ec30f5} 157 | MvvmLightNavigationExtension.NetStd 158 | 159 | 160 | 161 | 14.0 162 | 163 | 164 | 165 | 172 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/XamarinFormsSample.UWP.nuget.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | C:\Users\Daniel Hindrikes\Source\Repos\MvvmLightNavigationExtension\XamarinFormsSample\XamarinFormsSample.UWP\project.lock.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\Daniel Hindrikes\.nuget\packages\ 9 | ProjectJson 10 | 4.4.0 11 | 12 | 13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.UWP/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2", 4 | "MvvmLightLibsStd10": "5.4.0.1-alpha", 5 | "Xamarin.Forms": "2.3.4.224" 6 | }, 7 | "frameworks": { 8 | "uap10.0.10586": {} 9 | }, 10 | "runtimes": { 11 | "win10-arm": {}, 12 | "win10-arm-aot": {}, 13 | "win10-x86": {}, 14 | "win10-x86-aot": {}, 15 | "win10-x64": {}, 16 | "win10-x64-aot": {} 17 | } 18 | } -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace XamarinFormsSample.iOS 9 | { 10 | // The UIApplicationDelegate for the application. This class is responsible for launching the 11 | // User Interface of the application, as well as listening (and optionally responding) to 12 | // application events from iOS. 13 | [Register("AppDelegate")] 14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 15 | { 16 | // 17 | // This method is invoked when the application has loaded and is ready to run. In this 18 | // method you should instantiate the window, load the UI into it and then make the window 19 | // visible. 20 | // 21 | // You have 17 seconds to return from this method, or iOS will terminate your application. 22 | // 23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 24 | { 25 | global::Xamarin.Forms.Forms.Init (); 26 | LoadApplication (new XamarinFormsSample.App ()); 27 | 28 | return base.FinishedLaunching (app, options); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Info.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | XamarinFormsSample 27 | CFBundleIdentifier 28 | com.yourcompany.XamarinFormsSample 29 | CFBundleVersion 30 | 1.0 31 | CFBundleIconFiles 32 | 33 | Icon-60@2x.png 34 | Icon-60@3x.png 35 | Icon-76.png 36 | Icon-76@2x.png 37 | Default.png 38 | Default@2x.png 39 | Default-568h@2x.png 40 | Default-Portrait.png 41 | Default-Portrait@2x.png 42 | Icon-Small-40.png 43 | Icon-Small-40@2x.png 44 | Icon-Small-40@3x.png 45 | Icon-Small.png 46 | Icon-Small@2x.png 47 | Icon-Small@3x.png 48 | 49 | UILaunchStoryboardName 50 | LaunchScreen.storyboard 51 | 52 | 53 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace XamarinFormsSample.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("XamarinFormsSample.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("XamarinFormsSample.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-60@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-60@3x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-76.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-76@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/Resources/Icon-Small@3x.png -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/XamarinFormsSample.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {E0902CF3-6B74-4D86-9BF0-41300249B092} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Exe 11 | XamarinFormsSample.iOS 12 | Resources 13 | XamarinFormsSample.iOS 14 | 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\iPhoneSimulator\Debug 22 | DEBUG 23 | prompt 24 | 4 25 | false 26 | i386, x86_64 27 | None 28 | true 29 | 30 | 31 | none 32 | true 33 | bin\iPhoneSimulator\Release 34 | prompt 35 | 4 36 | None 37 | i386, x86_64 38 | false 39 | 40 | 41 | true 42 | full 43 | false 44 | bin\iPhone\Debug 45 | DEBUG 46 | prompt 47 | 4 48 | false 49 | ARMv7, ARM64 50 | iPhone Developer 51 | true 52 | Entitlements.plist 53 | 54 | 55 | none 56 | true 57 | bin\iPhone\Release 58 | prompt 59 | 4 60 | ARMv7, ARM64 61 | false 62 | iPhone Developer 63 | Entitlements.plist 64 | 65 | 66 | none 67 | True 68 | bin\iPhone\Ad-Hoc 69 | prompt 70 | 4 71 | False 72 | ARMv7, ARM64 73 | True 74 | Automatic:AdHoc 75 | iPhone Distribution 76 | Entitlements.plist 77 | 78 | 79 | none 80 | True 81 | bin\iPhone\AppStore 82 | prompt 83 | 4 84 | False 85 | ARMv7, ARM64 86 | Automatic:AppStore 87 | iPhone Distribution 88 | Entitlements.plist 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | ..\..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.dll 121 | 122 | 123 | ..\..\packages\MvvmLightLibsStd10.5.4.0.1-alpha\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll 124 | 125 | 126 | 127 | 128 | 129 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll 130 | 131 | 132 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll 133 | 134 | 135 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll 136 | 137 | 138 | ..\..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll 139 | 140 | 141 | 142 | 143 | 144 | {ade9d21a-ce7a-416c-980a-4338eb07c01c} 145 | MvvmLight.XamarinForms 146 | 147 | 148 | {a7016889-b81a-491e-8e29-583a81ec30f5} 149 | MvvmLightNavigationExtension.NetStd 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 158 | 159 | 160 | 161 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/iTunesArtwork -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/iTunesArtwork@2x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhindrik/MvvmLightNavigationExtension/639a6e0233ea2dddfcb097b3649d77fd9fd15f4c/XamarinFormsSample/XamarinFormsSample.iOS/iTunesArtwork@2x -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample.iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | using Xamarin.Forms; 7 | 8 | namespace XamarinFormsSample 9 | { 10 | public partial class App : Application 11 | { 12 | public App () 13 | { 14 | InitializeComponent(); 15 | 16 | var navigationPage = new NavigationPage(); 17 | 18 | var navigationService = new NavigationService(); 19 | navigationService.Initialize(navigationPage); 20 | 21 | navigationService.Configure("Main", typeof(MainView)); 22 | navigationService.Configure("About", typeof(AboutView)); 23 | navigationService.Configure("Modal", typeof(ModalView)); 24 | 25 | 26 | SimpleIoc.Default.Register(() => navigationService); 27 | SimpleIoc.Default.Register(() => new DialogService()); 28 | 29 | navigationPage.PushAsync(new MainView()); 30 | 31 | MainPage = navigationPage; 32 | } 33 | 34 | protected override void OnStart () 35 | { 36 | // Handle when your app starts 37 | } 38 | 39 | protected override void OnSleep () 40 | { 41 | // Handle when your app sleeps 42 | } 43 | 44 | protected override void OnResume () 45 | { 46 | // Handle when your app resumes 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample/ViewModels/AboutViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using MvvmLightNavigationExtension; 7 | 8 | namespace XamarinFormsSample.ViewModels 9 | { 10 | public class AboutViewModel : ViewModelBase 11 | { 12 | public RelayCommand ShowModal 13 | { 14 | get 15 | { 16 | return new RelayCommand(() => 17 | { 18 | var navigation = SimpleIoc.Default.GetInstance(); 19 | navigation.OpenModal("Modal"); 20 | }); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 |  2 | using GalaSoft.MvvmLight; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace XamarinFormsSample.ViewModels 10 | { 11 | public class MainViewModel : ViewModelBase 12 | { 13 | public RelayCommand About 14 | { 15 | get 16 | { 17 | return new RelayCommand(() => 18 | { 19 | var navigation = SimpleIoc.Default.GetInstance(); 20 | navigation.NavigateTo("About"); 21 | }); 22 | } 23 | } 24 | 25 | public RelayCommand Dialog 26 | { 27 | get 28 | { 29 | return new RelayCommand(async() => 30 | { 31 | var dialog = SimpleIoc.Default.GetInstance(); 32 | await dialog.ShowMessage("Hi!", "Whats up?"); 33 | }); 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /XamarinFormsSample/XamarinFormsSample/Views/AboutView.xaml: -------------------------------------------------------------------------------- 1 |  2 | 5 |