Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BrightShadow/06a191571fc24409596d2f63e8a6cb2e to your computer and use it in GitHub Desktop.
Save BrightShadow/06a191571fc24409596d2f63e8a6cb2e to your computer and use it in GitHub Desktop.
WPF XAML Matching ViewModel to UserControl/View
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:v="clr-namespace:PP.Blog.Views"
xmlns:vm="clr-namespace:PP.Blog.ViewModels">
<DataTemplate DataType="{x:Type vm:HomeViewModel}">
<v:HomeView />
</DataTemplate>
....
</ResourceDictionary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment