Created
October 2, 2017 11:15
-
-
Save BrightShadow/06a191571fc24409596d2f63e8a6cb2e to your computer and use it in GitHub Desktop.
WPF XAML Matching ViewModel to UserControl/View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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