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="50" Height="50" Canvas.Left="0">
8
<EventTrigger RoutedEvent="Ellipse.Loaded">
13
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="MovingEllipse"
14
Storyboard.TargetProperty="(Canvas.Left)">
16
<SplineDoubleKeyFrame Value="0" KeyTime="0:0:0" KeySpline="0.0,0.0 0.0,0.0" />
17
<SplineDoubleKeyFrame Value="100" KeyTime="0:0:5" KeySpline="0.0,1.0 1.0,0.0" />
18
<SplineDoubleKeyFrame Value="400" KeyTime="0:0:10" KeySpline="0.0,0.0 1.0,0.0" />
19
<SplineDoubleKeyFrame Value="250" KeyTime="0:0:15" KeySpline="0.25,0.5 0.75,1" />
21
</DoubleAnimationUsingKeyFrames>