KeyFrame Point Animation : Frame Animation « Windows Presentation Foundation « VB.Net Tutorial






<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Rectangle Stroke="Black" Width="480" Height="480" />

    <Path Fill="Aqua" Stroke="Red" StrokeThickness="3">
        <Path.Data>
            <EllipseGeometry x:Name="elips" Center="240 50" RadiusX="48" RadiusY="48" />
        </Path.Data>
    </Path>
    <Canvas.Triggers>
        <EventTrigger RoutedEvent="Canvas.Loaded">
            <BeginStoryboard>
                <Storyboard TargetName="elips" TargetProperty="Center">
                    <PointAnimationUsingKeyFrames Duration="0:0:4" RepeatBehavior="Forever">
                        <LinearPointKeyFrame Value="430 240" KeyTime="0:0:1" />
                        <LinearPointKeyFrame Value="240 430" KeyTime="0:0:2" />
                        <LinearPointKeyFrame Value="50 240" KeyTime="0:0:3" />
                        <LinearPointKeyFrame Value="240 50" KeyTime="0:0:4" />
                    </PointAnimationUsingKeyFrames>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Canvas.Triggers>
</Canvas>
WPF Key Frame Point Animation








16.110.Frame Animation
16.110.1.Simple Key Frame AnimationSimple Key Frame Animation
16.110.2.KeyFrame Point AnimationKeyFrame Point Animation
16.110.3.Use DiscreteDoubleKeyFrame to switch textUse DiscreteDoubleKeyFrame to switch text
16.110.4.Use SplineDoubleKeyFrame to rotate a ButtonUse SplineDoubleKeyFrame to rotate a Button
16.110.5.Key frame animationKey frame animation
16.110.6.Key frame spline animationKey frame spline animation
16.110.7.Animated Button With Discrete Key FramesAnimated Button With Discrete Key Frames
16.110.8.SplineDoubleKeyFrame and KeySplineSplineDoubleKeyFrame and KeySpline
16.110.9.Limit the Frame Rate for All Animations in an ApplicationLimit the Frame Rate for All Animations in an Application
16.110.10.Frame RatesFrame Rates
16.110.11.String Animation Using Key FramesString Animation Using Key Frames