~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/test-double-keyspline-animation.xaml

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
2
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
3
 
 
4
        <Ellipse x:Name="MovingEllipse" Fill="Purple" Width="50" Height="50" Canvas.Left="0">
 
5
 
 
6
        <Ellipse.Triggers>
 
7
 
 
8
                <EventTrigger RoutedEvent="Ellipse.Loaded">
 
9
 
 
10
                <BeginStoryboard>
 
11
                        <Storyboard>
 
12
 
 
13
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MovingEllipse"
 
14
                                        Storyboard.TargetProperty="(Canvas.Left)">
 
15
 
 
16
                                        <SplineDoubleKeyFrame Value="0" KeyTime="0:0:0" KeySpline="0.0,0.0 0.0,0.0" />
 
17
                                        <SplineDoubleKeyFrame Value="100" KeyTime="0:0:5" KeySpline="0.0,1.0 1.0,0.0" />
 
18
                                        <SplineDoubleKeyFrame Value="400" KeyTime="0:0:10" KeySpline="0.0,0.0 1.0,0.0" />
 
19
                                        <SplineDoubleKeyFrame Value="250" KeyTime="0:0:15" KeySpline="0.25,0.5 0.75,1" />
 
20
              
 
21
                                </DoubleAnimationUsingKeyFrames>
 
22
 
 
23
                        </Storyboard>
 
24
                </BeginStoryboard>
 
25
                </EventTrigger>
 
26
    </Ellipse.Triggers> 
 
27
  </Ellipse>
 
28
</Canvas>
 
29