Sliding transition animation between Screens in Caliburn Micro
In Silverlight (or WPF) application, I have a Conductor which is a Conductor.Collection.OneActive
What is a good way to animate a transition between screens (I'd like a simple slider) when I call ActivateItem(...)?
P.S. In my non-Caliburn apps I have used b开发者_开发百科oth TransitionPresenter controls of different makers or State Manager animations.
Edit: From Rob's answer, TransitionPresenter IS the way to go in the described situation. It maps nicely to the "default" Caliburn way of using ContentControl for switching views by manipulating view models. TransitionPresenter is essentially a ContentControl with animations.
At the same time, manipulating ActiveItem means having a state, and if you try to use State Manager with its own state at the same time, there is a problem of synchronizing these two states, so it is not a good fit.
You can still use a transition control. Just add the View.Model attached property to it.
精彩评论