Discrete Point Jumps : vb « Windows Presentation Foundation « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Date Time
8.Design Patterns
9.Development Class
10.Event
11.File Stream
12.Generics
13.GUI Windows Form
14.Internationalization I18N
15.Language Basics
16.LINQ
17.Network
18.Office
19.Reflection
20.Regular Expressions
21.Security
22.Services Event
23.Thread
24.Web Services
25.Windows
26.Windows Presentation Foundation
27.XML
28.XML LINQ
C# / C Sharp » Windows Presentation Foundation » vbScreenshots 
Discrete Point Jumps
Discrete Point Jumps
     

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

    <Path Fill="Red">
        <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:4"
                                                  RepeatBehavior="Forever">
                        <DiscretePointKeyFrame KeyTime="0:0:0" Value="288 96" />
                        <DiscretePointKeyFrame KeyTime="0:0:3" Value="96 288" />
                    </PointAnimationUsingKeyFrames>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Canvas.Triggers>
</Canvas>

   
    
    
    
    
  
Related examples in the same category
1.RotateRotate
2.TranslateTranslate
3.Gradient brushes within a DrawingBrushGradient brushes within a DrawingBrush
4.Applies a RotateTransform to the DrawingBrush's RelativeTransform propertyApplies a RotateTransform to the DrawingBrush's RelativeTransform property
5.Style resource with predefined static resourceStyle resource with predefined static resource
6.The Opacity Mask Use the opacity mask brush as a fill to show what it looks likeThe Opacity Mask Use the opacity mask brush as a fill to show what it looks like
7.Desktop to AppWorkspaceDesktop to AppWorkspace
8.StackPanel.Orientation=VerticalStackPanel.Orientation=Vertical
9.Line Joins MiterLine Joins Miter
10.Reference SystemColorsReference SystemColors
11.Document StylesDocument Styles
12.Multiple SoundsMultiple Sounds
13.Animated Text TransformAnimated Text Transform
14.Resource LookupResource Lookup
15.Horizontal Linear Gradient and GradientStopHorizontal Linear Gradient and GradientStop
16.Reflected GradientReflected Gradient
17.Multicolored GradientMulticolored Gradient
18.Shape UnionShape Union
19.Shape XorShape Xor
20.Shape ExcludeShape Exclude
21.A Delay of 0 and Interval of 1 make this a fast slider.A Delay of 0 and Interval of 1 make this a fast slider.
22.Normal Slider (Max=100, Val=10)Normal Slider (Max=100, Val=10)
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.