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

« back to all changes in this revision

Viewing changes to test/xaml/test-crash-non-existing-animation-target-prop3.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
 
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
4
        Width="100" Height="100">
 
5
        <Ellipse x:Name="ball" Fill="Green" Width="50" Height="50" Canvas.Left="25" Canvas.Top="25">
 
6
        <Ellipse.RenderTransform>
 
7
                <TransformGroup>
 
8
                        <ScaleTransform ScaleX="1" ScaleY="1" CenterX="25" CenterY="25"/>
 
9
                </TransformGroup>
 
10
        </Ellipse.RenderTransform>
 
11
        <Ellipse.Triggers>
 
12
                <EventTrigger RoutedEvent="Ellipse.Loaded">
 
13
                        <BeginStoryboard>
 
14
                                <Storyboard x:Name="animation">
 
15
                                        <DoubleAnimationUsingKeyFrames
 
16
                                                Storyboard.TargetName="ball"
 
17
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
 
18
                                                AutoReverse="True" RepeatBehavior="Forever">
 
19
                                                        <SplineDoubleKeyFrame Value="1.8" KeyTime="0:0:1" KeySpline="0.0,0.3 0.7,1.0" />
 
20
                                        </DoubleAnimationUsingKeyFrames>
 
21
                                </Storyboard>
 
22
                        </BeginStoryboard>
 
23
                </EventTrigger>
 
24
        </Ellipse.Triggers>
 
25
        </Ellipse>
 
26
</Canvas>
 
27