ContentControl Transition Beta?

I have a ContentControl associated with this syntax:

<ContentControl  Content="{Binding Path=View}"></ContentControl>

I am replacing View using commands and wondering if animation can be used when this property has been changed, for example. changed from one UserControl to another?

Looking forward to hearing from you.

Thanks Stefan

+5
source share
1 answer

PixelLab provide an open source trick bag that contains a set of transitions that can be used to animate changes to the contents of a control, for example, when switching between views.

You can replace ContentControlwithTransitionPresenter

<lib:TransitionPresenter Transition="{StaticResource FadeTransition}" Content="{Binding View}" />
+3
source

All Articles