Skip to content

Instantly share code, notes, and snippets.

@andy51002000
Created October 21, 2017 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andy51002000/6e881b86a72cccb3d9383bf1966811dd to your computer and use it in GitHub Desktop.
Save andy51002000/6e881b86a72cccb3d9383bf1966811dd to your computer and use it in GitHub Desktop.
Modify App.xaml and add ViewModelLocator
<Application
x:Class="SimpleMVVM.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SimpleMVVM"
RequestedTheme="Dark"
xmlns:vm="using:SimpleMVVM.ViewModels">
<Application.Resources>
<ResourceDictionary>
<vm:ViewModelLocator x:Key="ViewModelLocator"/>
</ResourceDictionary>
</Application.Resources>
</Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment