1 <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4 <Ellipse x:Name="MovingEllipse" Fill="Purple" Width="100" Height="100" Canvas.Left="0">
5 <Ellipse.RenderTransform>
6 <ScaleTransform x:Name="ellipseScale" ScaleX="1.0" ScaleY="1.0" />
7 </Ellipse.RenderTransform>
11 <EventTrigger RoutedEvent="Ellipse.Loaded">
16 <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipseScale"
17 Storyboard.TargetProperty="ScaleX">
19 <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" />
20 <LinearDoubleKeyFrame Value="0.3" KeyTime="0:0:5" />
21 <LinearDoubleKeyFrame Value="0.5" KeyTime="0:0:10" />
22 <LinearDoubleKeyFrame Value="2.0" KeyTime="0:0:15" />
24 </DoubleAnimationUsingKeyFrames>
26 <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipseScale"
27 Storyboard.TargetProperty="ScaleY">
29 <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" />
30 <LinearDoubleKeyFrame Value="0.3" KeyTime="0:0:5" />
31 <LinearDoubleKeyFrame Value="0.5" KeyTime="0:0:10" />
32 <LinearDoubleKeyFrame Value="2.0" KeyTime="0:0:15" />
34 </DoubleAnimationUsingKeyFrames>