I have a ContentControl which has a Property Content. I wish to animate when the property content changes
Actual Senario
XAML
<ContentControl Grid.Row="0" Content="{Binding Path=CurrentPage}">
<ContentControl.Resources>
<DataTemplate DataType="{x:Type vm:SomeVM}">
<view:SomeView />
</DataTemplate>
<DataTemplate DataType="{x:Type vm:SomeOtherVM}">
<view:SomeOtherView />
</DataTemplate>
</ContentControl.Resources>
</ContentControl>
Now I Wish to Fade Out the Current Content when the Property CurrentPages
Also id Possible Fade In in the New Page.
Value of CurrentPage can be any thing so i wish if that changes then the Tow animation Kick in…
Any help in this direction will be appreciated.
We use this attached behaviour
Then