Esempi

<StackPanel><StackPanel.Resources><!-- Theme animations like this can use the default behavior like
this example or you could use properties like BeginTime and
Duration to tweak when and how quickly the animation occures.
If you want more control over a fade animation (e.g. just partial
fade), you will need to use DoubleAnimation to animate the Opacity
property of the element you want to fade in or out. --><Storyboardx:Name="EnterStoryboard"><FadeOutThemeAnimationStoryboard.TargetName="myRectangle"/></Storyboard><Storyboardx:Name="ExitStoryboard"><FadeInThemeAnimationStoryboard.TargetName="myRectangle"/></Storyboard></StackPanel.Resources><Rectanglex:Name="myRectangle"PointerEntered="Rectangle_PointerEntered"PointerExited="Rectangle_PointerExited"Fill="Blue"Width="200"Height="300"/></StackPanel>