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

« back to all changes in this revision

Viewing changes to test/xaml/assorted/sl2-animation-blending.html

  • 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
<head>
 
2
<title>Trivial test for stopping an animation</title>
 
3
<meta></meta>
 
4
</head>
 
5
<body>
 
6
 
 
7
<script type="text/javascript">
 
8
</script>
 
9
 
 
10
<object type="application/x-silverlight" data="data:," id="slControl" width="800" height="600">
 
11
<param name="background" value="#FFFFFF"/>
 
12
<param name="source" value="#xamlContent"/>
 
13
</object>
 
14
 
 
15
<script type="text/xaml" id="xamlContent">
 
16
<?xml version="1.0"?>
 
17
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
18
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
19
 
 
20
        <Rectangle x:Name="target" Fill="Blue" Canvas.Top="100" Canvas.Left="100" MouseEnter="OnMouseEnter" Width="25" Height="25">
 
21
                <Rectangle.Triggers>
 
22
                        <EventTrigger RoutedEvent="Rectangle.Loaded">
 
23
                                <BeginStoryboard>
 
24
                                        <Storyboard>
 
25
                                                <DoubleAnimation To="200"
 
26
                                                        Storyboard.TargetName="target"
 
27
                                                        Storyboard.TargetProperty="(Canvas.Left)" BeginTime="0:0:0">
 
28
                                                </DoubleAnimation>
 
29
                                        </Storyboard>
 
30
                                </BeginStoryboard>
 
31
                                <BeginStoryboard>
 
32
                                        <Storyboard>
 
33
                                                <DoubleAnimation To="0"
 
34
                                                        Storyboard.TargetName="target"
 
35
                                                        Storyboard.TargetProperty="(Canvas.Left)" BeginTime="0:0:0">
 
36
                                                </DoubleAnimation>
 
37
                                        </Storyboard>
 
38
                                </BeginStoryboard>
 
39
                        </EventTrigger>
 
40
                </Rectangle.Triggers>
 
41
        </Rectangle>
 
42
</Canvas>
 
43
</script>
 
44
 
 
45
</body>
 
46
</html>
 
47
 
 
48