1
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3
<title>Seek over animation time bounds and return test</title>
8
<script type="text/javascript">
9
function OnMouseEnter (sender, eventArgs)
11
sender.findName ("animation1").Begin ();
12
sender.findName ("animation1").Seek ("00:00:06");
13
sender.findName ("animation1").Seek ("00:00:00");
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"/>
22
<script type="text/xaml" id="xamlContent">
24
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
25
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
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"/>
32
<Storyboard x:Name="animation1">
33
<DoubleAnimation Storyboard.TargetName="rect" Storyboard.TargetProperty="(Canvas.Left)" By="500" Duration="00:00:05" />