├── .gitattributes ├── .gitignore ├── Caliburn Micro ├── CaliburnMicro.Advanced │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── CaliburnMicro.Advanced.csproj │ ├── CaliburnMicro.Advanced_TemporaryKey.pfx │ ├── Models │ │ └── FeedItem.cs │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── Services │ │ ├── FakeRssService.cs │ │ ├── IRssService.cs │ │ └── RssService.cs │ ├── ViewModels │ │ └── MainViewModel.cs │ ├── Views │ │ ├── MainView.xaml │ │ └── MainView.xaml.cs │ └── project.json ├── CaliburnMicro.Basic │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── CaliburnMicro.Basic.csproj │ ├── CaliburnMicro.Basic_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── ViewModels │ │ └── MainViewModel.cs │ ├── Views │ │ ├── MainView.xaml │ │ └── MainView.xaml.cs │ └── project.json └── CaliburnMicro.Messages │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── CaliburnMicro.Messages.csproj │ ├── CaliburnMicro.Messages_TemporaryKey.pfx │ ├── Messages │ └── StartAnimationMessage.cs │ ├── Package.appxmanifest │ ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml │ ├── ViewModels │ └── MainViewModel.cs │ ├── Views │ ├── MainView.xaml │ └── MainView.xaml.cs │ └── project.json ├── LICENSE.md ├── MVVM Light ├── MVVMLight.Advanced │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── MVVMLight.Advanced.csproj │ ├── MVVMLight.Advanced_TemporaryKey.pfx │ ├── Models │ │ └── FeedItem.cs │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── Services │ │ ├── FakeRssService.cs │ │ ├── IRssService.cs │ │ └── RssService.cs │ ├── ViewModels │ │ ├── MainViewModel.cs │ │ └── ViewModelLocator.cs │ ├── Views │ │ ├── MainView.xaml │ │ └── MainView.xaml.cs │ └── project.json ├── MVVMLight.Basic │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── MVVMLight.Basic.csproj │ ├── MVVMLight.Basic_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── ViewModels │ │ ├── MainViewModel.cs │ │ └── ViewModelLocator.cs │ ├── Views │ │ ├── MainView.xaml │ │ └── MainView.xaml.cs │ └── project.json ├── MVVMLight.Dispatcher │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── MVVMLight.Dispatcher.csproj │ ├── MVVMLight.Dispatcher_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── ViewModels │ │ ├── MainViewModel.cs │ │ └── ViewModelLocator.cs │ ├── Views │ │ ├── MainPage.xaml │ │ └── MainPage.xaml.cs │ └── project.json └── MVVMLight.Messages │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── MVVMLight.Messages.csproj │ ├── MVVMLight.Messages_TemporaryKey.pfx │ ├── Messages │ └── StartAnimationMessage.cs │ ├── Package.appxmanifest │ ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml │ ├── ViewModels │ ├── MainViewModel.cs │ └── ViewModelLocator.cs │ ├── Views │ ├── MainView.xaml │ └── MainView.xaml.cs │ └── project.json ├── MvvmSample.sln ├── README.md └── Shared ├── MVVMLight.Services.Android ├── Assets │ └── AboutAssets.txt ├── GettingStarted.Xamarin ├── MVVMLight.Services.Android.csproj ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.Designer.cs │ ├── drawable │ │ └── Icon.png │ ├── layout │ │ └── Main.axml │ └── values │ │ └── Strings.xml ├── Services │ └── DialogService.cs ├── ViewModels │ └── ViewModelLocator.cs └── packages.config ├── MVVMLight.Services.Shared ├── MVVMLight.Services.Shared.csproj ├── Properties │ └── AssemblyInfo.cs ├── Services │ └── IDialogService.cs ├── ViewModels │ └── MainViewModel.cs └── packages.config └── MVVMLight.Services.UWP ├── App.xaml ├── App.xaml.cs ├── Assets ├── LockScreenLogo.scale-200.png ├── SplashScreen.scale-200.png ├── Square150x150Logo.scale-200.png ├── Square44x44Logo.scale-200.png ├── Square44x44Logo.targetsize-24_altform-unplated.png ├── StoreLogo.png └── Wide310x150Logo.scale-200.png ├── MVVMLight.Services.UWP.csproj ├── MVVMLight.Services_TemporaryKey.pfx ├── Package.appxmanifest ├── Properties ├── AssemblyInfo.cs └── Default.rd.xml ├── Services └── DialogService.cs ├── ViewModels └── ViewModelLocator.cs ├── Views ├── MainPage.xaml └── MainPage.xaml.cs └── project.json /.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 | !*.pfx 46 | *_i.c 47 | *_p.c 48 | *_i.h 49 | *.ilk 50 | *.meta 51 | *.obj 52 | *.pch 53 | *.pdb 54 | *.pgc 55 | *.pgd 56 | *.rsp 57 | *.sbr 58 | *.tlb 59 | *.tli 60 | *.tlh 61 | *.tmp 62 | *.tmp_proj 63 | *.log 64 | *.vspscc 65 | *.vssscc 66 | .builds 67 | *.pidb 68 | *.svclog 69 | *.scc 70 | 71 | # Chutzpah Test files 72 | _Chutzpah* 73 | 74 | # Visual C++ cache files 75 | ipch/ 76 | *.aps 77 | *.ncb 78 | *.opensdf 79 | *.sdf 80 | *.cachefile 81 | 82 | # Visual Studio profiler 83 | *.psess 84 | *.vsp 85 | *.vspx 86 | 87 | # TFS 2012 Local Workspace 88 | $tf/ 89 | 90 | # Guidance Automation Toolkit 91 | *.gpState 92 | 93 | # ReSharper is a .NET coding add-in 94 | _ReSharper*/ 95 | *.[Rr]e[Ss]harper 96 | *.DotSettings.user 97 | 98 | # JustCode is a .NET coding add-in 99 | .JustCode 100 | 101 | # TeamCity is a build add-in 102 | _TeamCity* 103 | 104 | # DotCover is a Code Coverage Tool 105 | *.dotCover 106 | 107 | # NCrunch 108 | _NCrunch_* 109 | .*crunch*.local.xml 110 | 111 | # MightyMoose 112 | *.mm.* 113 | AutoTest.Net/ 114 | 115 | # Web workbench (sass) 116 | .sass-cache/ 117 | 118 | # Installshield output folder 119 | [Ee]xpress/ 120 | 121 | # DocProject is a documentation generator add-in 122 | DocProject/buildhelp/ 123 | DocProject/Help/*.HxT 124 | DocProject/Help/*.HxC 125 | DocProject/Help/*.hhc 126 | DocProject/Help/*.hhk 127 | DocProject/Help/*.hhp 128 | DocProject/Help/Html2 129 | DocProject/Help/html 130 | 131 | # Click-Once directory 132 | publish/ 133 | 134 | # Publish Web Output 135 | *.[Pp]ublish.xml 136 | *.azurePubxml 137 | ## TODO: Comment the next line if you want to checkin your 138 | ## web deploy settings but do note that will include unencrypted 139 | ## passwords 140 | #*.pubxml 141 | 142 | *.publishproj 143 | 144 | # NuGet Packages 145 | *.nupkg 146 | # The packages folder can be ignored because of Package Restore 147 | **/packages/* 148 | # except build/, which is used as an MSBuild target. 149 | !**/packages/build/ 150 | # Uncomment if necessary however generally it will be regenerated when needed 151 | #!**/packages/repositories.config 152 | 153 | # Windows Azure Build Output 154 | csx/ 155 | *.build.csdef 156 | 157 | # Windows Store app package directory 158 | AppPackages/ 159 | 160 | # Visual Studio cache files 161 | # files ending in .cache can be ignored 162 | *.[Cc]ache 163 | # but keep track of directories ending in .cache 164 | !*.[Cc]ache/ 165 | 166 | # Others 167 | ClientBin/ 168 | [Ss]tyle[Cc]op.* 169 | ~$* 170 | *~ 171 | *.dbmdl 172 | *.dbproj.schemaview 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 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/App.xaml: -------------------------------------------------------------------------------- 1 |  8 | 9 | 10 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Windows.ApplicationModel.Activation; 4 | using Windows.UI.Xaml.Controls; 5 | using Caliburn.Micro; 6 | using CaliburnMicro.Advanced.Services; 7 | using CaliburnMicro.Advanced.ViewModels; 8 | using CaliburnMicro.Advanced.Views; 9 | 10 | namespace CaliburnMicro.Advanced 11 | { 12 | /// 13 | /// Provides application-specific behavior to supplement the default Application class. 14 | /// 15 | sealed partial class App 16 | { 17 | private WinRTContainer _container; 18 | 19 | protected override void Configure() 20 | { 21 | _container = new WinRTContainer(); 22 | 23 | _container.RegisterWinRTServices(); 24 | _container.PerRequest(); 25 | _container.PerRequest(); 26 | } 27 | 28 | protected override void PrepareViewFirst(Frame rootFrame) 29 | { 30 | _container.RegisterNavigationService(rootFrame); 31 | } 32 | 33 | protected override void OnLaunched(LaunchActivatedEventArgs args) 34 | { 35 | if (args.PreviousExecutionState == ApplicationExecutionState.Running) 36 | { 37 | return; 38 | } 39 | DisplayRootView(); 40 | } 41 | 42 | protected override object GetInstance(Type service, string key) 43 | { 44 | return _container.GetInstance(service, key); 45 | } 46 | 47 | protected override IEnumerable GetAllInstances(Type service) 48 | { 49 | return _container.GetAllInstances(service); 50 | } 51 | 52 | protected override void BuildUp(object instance) 53 | { 54 | _container.BuildUp(instance); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/StoreLogo.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/CaliburnMicro.Advanced.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {5C57ED5C-E878-4469-B0B2-9CA133810EC5} 8 | AppContainerExe 9 | Properties 10 | CaliburnMicro.Advanced 11 | CaliburnMicro.Advanced 12 | en-US 13 | UAP 14 | 10.0.10240.0 15 | 10.0.10240.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | CaliburnMicro.Advanced_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 | 101 | 102 | 103 | 104 | 105 | 106 | MainView.xaml 107 | 108 | 109 | 110 | 111 | Designer 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | MSBuild:Compile 128 | Designer 129 | 130 | 131 | 132 | 133 | MSBuild:Compile 134 | Designer 135 | 136 | 137 | 138 | 14.0 139 | 140 | 141 | 148 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/CaliburnMicro.Advanced_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Advanced/CaliburnMicro.Advanced_TemporaryKey.pfx -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Models/FeedItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CaliburnMicro.Advanced.Models 4 | { 5 | public class FeedItem 6 | { 7 | public string Title { get; set; } 8 | 9 | public string Description { get; set; } 10 | 11 | public string Link { get; set; } 12 | 13 | public string Content { get; set; } 14 | 15 | public DateTime PublishDate { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | CaliburnMicro.Advanced 18 | mpagani 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 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/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("CaliburnMicro.Advanced")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CaliburnMicro.Advanced")] 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)] -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Services/FakeRssService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | using CaliburnMicro.Advanced.Models; 5 | 6 | namespace CaliburnMicro.Advanced.Services 7 | { 8 | public class FakeRssService : IRssService 9 | { 10 | public Task> GetNews(string url) 11 | { 12 | List items = new List 13 | { 14 | new FeedItem 15 | { 16 | PublishDate = new DateTime(2015, 9, 3), 17 | Title = "Sample news 1" 18 | }, 19 | new FeedItem 20 | { 21 | PublishDate = new DateTime(2015, 9, 4), 22 | Title = "Sample news 2" 23 | }, 24 | new FeedItem 25 | { 26 | PublishDate = new DateTime(2015, 9, 5), 27 | Title = "Sample news 3" 28 | }, 29 | new FeedItem 30 | { 31 | PublishDate = new DateTime(2015, 9, 6), 32 | Title = "Sample news 4" 33 | } 34 | }; 35 | 36 | return Task.FromResult(items); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Services/IRssService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using CaliburnMicro.Advanced.Models; 4 | 5 | namespace CaliburnMicro.Advanced.Services 6 | { 7 | public interface IRssService 8 | { 9 | Task> GetNews(string url); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Services/RssService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Threading.Tasks; 6 | using System.Xml.Linq; 7 | using CaliburnMicro.Advanced.Models; 8 | 9 | namespace CaliburnMicro.Advanced.Services 10 | { 11 | public class RssService : IRssService 12 | { 13 | public async Task> GetNews(string url) 14 | { 15 | HttpClient client = new HttpClient(); 16 | string result = await client.GetStringAsync(url); 17 | var xdoc = XDocument.Parse(result); 18 | return (from item in xdoc.Descendants("item") 19 | select new FeedItem 20 | { 21 | Title = (string)item.Element("title"), 22 | Description = (string)item.Element("description"), 23 | Link = (string)item.Element("link"), 24 | PublishDate = DateTime.Parse((string)item.Element("pubDate")) 25 | }).ToList(); 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | using System.Threading.Tasks; 4 | using Caliburn.Micro; 5 | using CaliburnMicro.Advanced.Models; 6 | using CaliburnMicro.Advanced.Services; 7 | 8 | namespace CaliburnMicro.Advanced.ViewModels 9 | { 10 | public class MainViewModel : Screen 11 | { 12 | private readonly IRssService _rssService; 13 | 14 | public MainViewModel(IRssService rssService) 15 | { 16 | _rssService = rssService; 17 | } 18 | 19 | private ObservableCollection _news; 20 | 21 | public ObservableCollection News 22 | { 23 | get { return _news; } 24 | set 25 | { 26 | _news = value; 27 | NotifyOfPropertyChange(); 28 | } 29 | } 30 | 31 | protected override async void OnActivate() 32 | { 33 | await RefreshData(); 34 | } 35 | 36 | public async Task RefreshData() 37 | { 38 | List items = await _rssService.GetNews("http://wp.qmatteoq.com/rss"); 39 | News = new ObservableCollection(items); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Views/MainView.xaml: -------------------------------------------------------------------------------- 1 |  8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/Views/MainView.xaml.cs: -------------------------------------------------------------------------------- 1 | using Windows.UI.Xaml.Controls; 2 | 3 | // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 4 | 5 | namespace CaliburnMicro.Advanced.Views 6 | { 7 | /// 8 | /// An empty page that can be used on its own or navigated to within a Frame. 9 | /// 10 | public sealed partial class MainView : Page 11 | { 12 | public MainView() 13 | { 14 | this.InitializeComponent(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Advanced/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Caliburn.Micro": "3.0.0-beta1", 4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" 5 | }, 6 | "frameworks": { 7 | "uap10.0": {} 8 | }, 9 | "runtimes": { 10 | "win10-arm": {}, 11 | "win10-arm-aot": {}, 12 | "win10-x86": {}, 13 | "win10-x86-aot": {}, 14 | "win10-x64": {}, 15 | "win10-x64-aot": {} 16 | } 17 | } -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/App.xaml: -------------------------------------------------------------------------------- 1 |  8 | 9 | 10 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Windows.ApplicationModel.Activation; 4 | using Windows.UI.Xaml.Controls; 5 | using Caliburn.Micro; 6 | using CaliburnMicro.Basic.ViewModels; 7 | using CaliburnMicro.Basic.Views; 8 | 9 | namespace CaliburnMicro.Basic 10 | { 11 | /// 12 | /// Provides application-specific behavior to supplement the default Application class. 13 | /// 14 | sealed partial class App 15 | { 16 | private WinRTContainer _container; 17 | 18 | protected override void Configure() 19 | { 20 | _container = new WinRTContainer(); 21 | 22 | _container.RegisterWinRTServices(); 23 | _container.PerRequest(); 24 | } 25 | 26 | protected override void PrepareViewFirst(Frame rootFrame) 27 | { 28 | _container.RegisterNavigationService(rootFrame); 29 | } 30 | 31 | protected override void OnLaunched(LaunchActivatedEventArgs args) 32 | { 33 | if (args.PreviousExecutionState == ApplicationExecutionState.Running) 34 | { 35 | return; 36 | } 37 | DisplayRootView(); 38 | } 39 | 40 | protected override object GetInstance(Type service, string key) 41 | { 42 | return _container.GetInstance(service, key); 43 | } 44 | 45 | protected override IEnumerable GetAllInstances(Type service) 46 | { 47 | return _container.GetAllInstances(service); 48 | } 49 | 50 | protected override void BuildUp(object instance) 51 | { 52 | _container.BuildUp(instance); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/StoreLogo.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/CaliburnMicro.Basic.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {1B2476CA-6D9C-4FC7-899B-FCF72DDF936B} 8 | AppContainerExe 9 | Properties 10 | CaliburnMicro.Basic 11 | CaliburnMicro.Basic 12 | en-US 13 | UAP 14 | 10.0.10240.0 15 | 10.0.10240.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | CaliburnMicro.Basic_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 | 101 | 102 | MainView.xaml 103 | 104 | 105 | 106 | 107 | Designer 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | MSBuild:Compile 124 | Designer 125 | 126 | 127 | 128 | 129 | Designer 130 | MSBuild:Compile 131 | 132 | 133 | 134 | 14.0 135 | 136 | 137 | 144 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/CaliburnMicro.Basic_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qmatteoq/UWP-MVVMSamples/aa23ee1e4a5d5fe0c8bbe7d9c6a84e37e538b945/Caliburn Micro/CaliburnMicro.Basic/CaliburnMicro.Basic_TemporaryKey.pfx -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | CaliburnMicro.Basic 18 | mpagani 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 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/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("CaliburnMicro.Basic")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CaliburnMicro.Basic")] 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)] -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Caliburn.Micro; 7 | 8 | namespace CaliburnMicro.Basic.ViewModels 9 | { 10 | public class MainViewModel: Screen 11 | { 12 | private string _name; 13 | 14 | public string Name 15 | { 16 | get 17 | { 18 | return _name; 19 | } 20 | set 21 | { 22 | _name = value; 23 | NotifyOfPropertyChange(); 24 | NotifyOfPropertyChange(() => CanSayHello); 25 | } 26 | } 27 | 28 | private string _message; 29 | 30 | public string Message 31 | { 32 | get 33 | { 34 | return _message; 35 | } 36 | set 37 | { 38 | _message = value; 39 | NotifyOfPropertyChange(); 40 | } 41 | } 42 | 43 | public void SayHello() 44 | { 45 | Message = $"Hello {Name}"; 46 | } 47 | 48 | public bool CanSayHello 49 | { 50 | get { return !string.IsNullOrEmpty(Name); } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Caliburn Micro/CaliburnMicro.Basic/Views/MainView.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 15 |