2
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
Width="100" Height="100">
5
<Ellipse x:Name="ball" Fill="Green" Width="50" Height="50" Canvas.Left="25" Canvas.Top="25">
6
<Ellipse.RenderTransform>
8
<ScaleTransform ScaleX="1" ScaleY="1" CenterX="25" CenterY="25"/>
10
</Ellipse.RenderTransform>
12
<EventTrigger RoutedEvent="Ellipse.Loaded">
14
<Storyboard x:Name="animation">
15
<DoubleAnimationUsingKeyFrames
16
Storyboard.TargetName="ball"
17
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
18
AutoReverse="True" RepeatBehavior="Forever">
19
<SplineDoubleKeyFrame Value="1.8" KeyTime="0:0:1" KeySpline="0.0,0.3 0.7,1.0" />
20
</DoubleAnimationUsingKeyFrames>