Databound ContentControl Transition animation?
I have a ContentControl that is databound using this syntax:
<ContentControl Content="{Binding Path=Vi开发者_如何学JAVAew}"></ContentControl>
I replace the View using commands and was wondering if it was possible to use an animation when this property was changed, e.g. changed from one UserControl to another?
Looking forward to hear from you.
Thanks, Stefan
PixelLab provide an open source Bag of Tricks which contains a set of transitions which can be use to animate changing the content of a control, eg when switching between views.
You can replace the ContentControl
with the TransitionPresenter
<lib:TransitionPresenter Transition="{StaticResource FadeTransition}" Content="{Binding View}" />
精彩评论