<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Margin="10" Width="250" Height="250">
        <Canvas.Background>
            <ImageBrush ViewportUnits="Absolute"   TileMode="Tile" Viewport="0,0,500,500">
                <ImageBrush.ImageSource>
                    <BitmapImage UriSource="background.png"/>
                </ImageBrush.ImageSource>
            </ImageBrush>
        </Canvas.Background>
        <Path Canvas.Top="0" Canvas.Left="0" Stroke="Orange" StrokeThickness="3">
            <Path.Data>
                <PathGeometry>
                    <PathGeometry.Figures>
                        <PathFigure StartPoint="0,0">
                            <PathFigure.Segments>
                                <BezierSegment  Point1="0,250"   Point2="50,0" Point3="50,250" />
                            </PathFigure.Segments>
                        </PathFigure>
                        <PathFigure StartPoint="50,250">
                            <PathFigure.Segments>
                                <BezierSegment  Point1="50,0"   Point2="100,250" Point3="100,0" />
                            </PathFigure.Segments>
                        </PathFigure>
                        <PathFigure StartPoint="100,0">
                            <PathFigure.Segments>
                                <BezierSegment  Point1="100,250"   Point2="150,0" Point3="150,250" />
                            </PathFigure.Segments>
                        </PathFigure>
                        <PathFigure StartPoint="150,250">
                            <PathFigure.Segments>
                                <BezierSegment  Point1="150,0"   Point2="200,250" Point3="200,0" />
                            </PathFigure.Segments>
                        </PathFigure>
                        <PathFigure StartPoint="200,0">
                            <PathFigure.Segments>
                                <BezierSegment  Point1="200,250"   Point2="250,0" Point3="250,250" />
                            </PathFigure.Segments>
                        </PathFigure>
                    </PathGeometry.Figures>
                </PathGeometry>
            </Path.Data>
        </Path>
        <Path  Fill="Orange" Canvas.Top="0" Canvas.Left="0" Stroke="Orange" StrokeThickness="3">
            <Path.Data>
                <EllipseGeometry x:Name="e" Center="0,0" RadiusX="15" RadiusY="15"/>
            </Path.Data>
            <Path.Triggers>
                <EventTrigger RoutedEvent="Path.Loaded">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(Canvas.Top)"
                                Duration="0:0:10" RepeatBehavior="Forever">
                                <SplineDoubleKeyFrame Value="250" KeySpline="0,1 1,0" KeyTime="Uniform"/>
                                <SplineDoubleKeyFrame KeySpline="0,1 1,0" Value="0" KeyTime="Uniform"/>
                                <SplineDoubleKeyFrame KeySpline="0,1 1,0" Value="250" KeyTime="Uniform"/>
                                <SplineDoubleKeyFrame KeySpline="0,1 1,0" Value="0" KeyTime="Uniform"/>
                                <SplineDoubleKeyFrame KeySpline="0,1 1,0" Value="250" KeyTime="Uniform"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimation Storyboard.TargetProperty="(Canvas.Left)"
                                From="0" To="250" Duration="0:0:10" RepeatBehavior="Forever"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Path.Triggers>
        </Path>
    </Canvas>