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

« back to all changes in this revision

Viewing changes to test/xaml/assorted/seek-test-overbounds-and-return.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
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 
2
<head>
 
3
<title>Seek over animation time bounds and return test</title>
 
4
<meta></meta>
 
5
</head>
 
6
<body>
 
7
 
 
8
<script type="text/javascript">
 
9
function OnMouseEnter (sender, eventArgs)
 
10
{
 
11
        sender.findName ("animation1").Begin ();
 
12
        sender.findName ("animation1").Seek ("00:00:06");
 
13
        sender.findName ("animation1").Seek ("00:00:00");
 
14
}
 
15
</script>
 
16
 
 
17
<object type="application/x-silverlight" data="data:," id="slControl" width="640" height="480">
 
18
<param name="background" value="#FFFFFF"/>
 
19
<param name="source" value="#xamlContent"/>
 
20
</object>
 
21
 
 
22
<script type="text/xaml" id="xamlContent">
 
23
<?xml version="1.0"?>
 
24
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
25
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
26
 
 
27
        <Rectangle x:Name="measure1" Canvas.Left="10" Canvas.Top="7" Width="600" Height="3" Fill="Black" />
 
28
        <Rectangle x:Name="measure2" Canvas.Left="10" Canvas.Top="110" Width="600" Height="3" Fill="Black" />
 
29
        <Rectangle x:Name="rect" Canvas.Left="10" Canvas.Top="10" Width="100" Height="100" Fill="Red" MouseEnter="OnMouseEnter"/>
 
30
 
 
31
        <Canvas.Resources>
 
32
                        <Storyboard x:Name="animation1">
 
33
                                        <DoubleAnimation Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" Duration="00:00:05" />
 
34
                        </Storyboard>
 
35
        </Canvas.Resources>
 
36
 
 
37
</Canvas>
 
38
</script>
 
39
 
 
40
</body>
 
41
</html>