<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Path Fill="Aqua" Stroke="Red" StrokeThickness="3">
<Path.Data>
<EllipseGeometry x:Name="elips" RadiusX="24" RadiusY="24" />
</Path.Data>
</Path>
<Canvas.Triggers>
<EventTrigger RoutedEvent="Canvas.Loaded">
<BeginStoryboard>
<Storyboard TargetName="elips" TargetProperty="Center">
<PointAnimationUsingKeyFrames Duration="0:0:5" RepeatBehavior="Forever">
<LinearPointKeyFrame Value="48 48" KeyTime="Paced" />
<LinearPointKeyFrame Value="480 240" KeyTime="Paced" />
<LinearPointKeyFrame Value="48 48" KeyTime="Paced" />
</PointAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Canvas.Triggers>
</Canvas>
|