Reputation: 2675
I have a desktop WPF project build up nicely in MVVM with Caliburn.Micro and now I'm at the point where I want to add another user interface. That new UI is not for web or phone, that UI is another bunch of Views, completely different from the first UI-set. I should be able to switch between them. One user can select the older UI, another should be able to select the newer. What can I do to be able to switch between different UI's? Sometimes ViewModels are the same, but Views are different, how can I select the required one, depending on the UI-selected?
Upvotes: 0
Views: 191
Reputation: 1687
You should take a look at the Screens, Conductors and Composition of Caliburn.Micro.
Here is a short Video.
Furthermore,
You can bind the view Context like so :
<clt:TransitioningContentControl cal:View.Context="{Binding State, Mode=TwoWay}"
cal:View.Model="{Binding}"
Style="{StaticResource specialTransition}"/>
cal = [xmlns:cal="http://www.caliburnproject.org"
]
Happy coding :)
Upvotes: 0