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

« back to all changes in this revision

Viewing changes to test/xaml/test-animation-begintimes.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
    <Rectangle Fill="Red" Stroke="Black" StrokeThickness="2" Canvas.Left="10" Canvas.Top="10" Width="500" Height="100" x:Name="BoxedBox">
 
5
 
 
6
    <Rectangle.Triggers>
 
7
      <EventTrigger RoutedEvent="Rectangle.Loaded">
 
8
        <BeginStoryboard>
 
9
          <Storyboard x:Name="animation">
 
10
            <DoubleAnimation
 
11
              x:Name="first"
 
12
              BeginTime="0:0:0"
 
13
              Storyboard.TargetName="BoxedBox"
 
14
              Storyboard.TargetProperty="Width"
 
15
              From="100" To="300" Duration="0:0:4"
 
16
              RepeatBehavior="1" AutoReverse="false" />
 
17
 
 
18
            <DoubleAnimation
 
19
              x:Name="second"
 
20
              BeginTime="0:0:4"
 
21
              Storyboard.TargetName="BoxedBox"
 
22
              Storyboard.TargetProperty="Height"
 
23
              From="100" To="300" Duration="0:0:4"
 
24
              RepeatBehavior="1" AutoReverse="false" />
 
25
 
 
26
            <DoubleAnimation
 
27
              BeginTime="0:0:8"
 
28
              Storyboard.TargetName="BoxedBox"
 
29
              Storyboard.TargetProperty="Width"
 
30
              From="300" To="100" Duration="0:0:4"
 
31
              RepeatBehavior="1" AutoReverse="false" />
 
32
 
 
33
            <DoubleAnimation
 
34
              BeginTime="0:0:12"
 
35
              Storyboard.TargetName="BoxedBox"
 
36
              Storyboard.TargetProperty="Height"
 
37
              From="300" To="100" Duration="0:0:4"
 
38
              RepeatBehavior="1" AutoReverse="false" />
 
39
 
 
40
            <DoubleAnimation
 
41
              BeginTime="0:0:16"
 
42
              Storyboard.TargetName="BoxedBox"
 
43
              Storyboard.TargetProperty="Opacity"
 
44
              From="1" To="0" Duration="0:0:2"
 
45
              RepeatBehavior="1" AutoReverse="true" />
 
46
          </Storyboard>
 
47
        </BeginStoryboard>
 
48
      </EventTrigger>
 
49
    </Rectangle.Triggers>
 
50
 
 
51
  </Rectangle>
 
52
</Canvas>