Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LoginVM loginVM = new LoginVM();
- LogoutVM logoutVM = new LogoutVM();
- CurrentActionVM = loginVM;
- CurrentActionVM = logoutVM;
- <Window.Resources>
- <DataTemplate DataType="{x:Type vm:LoginVM}">
- <LoginUserControl/>
- </DataTemplate>
- <DataTemplate DataType="{x:Type vm:LogoutVM}">
- <LogoutUserControl/>
- </DataTemplate>
- </Window.Resources>
- <ContentPresenter Content="{Binding CurrentActionVM}"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement