Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. LoginVM loginVM = new LoginVM();
  2. LogoutVM logoutVM = new LogoutVM();
  3.  
  4. CurrentActionVM = loginVM;
  5.  
  6. CurrentActionVM = logoutVM;
  7.  
  8. <Window.Resources>
  9. <DataTemplate DataType="{x:Type vm:LoginVM}">
  10. <LoginUserControl/>
  11. </DataTemplate>
  12. <DataTemplate DataType="{x:Type vm:LogoutVM}">
  13. <LogoutUserControl/>
  14. </DataTemplate>
  15. </Window.Resources>
  16.  
  17. <ContentPresenter Content="{Binding CurrentActionVM}"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement