* MoonlightTypeConverter.cs: Convert CacheMode's from strings.
[moon.git] / test / xaml / test-animation-hold-stop-speed.xaml
blob659958dffecaa1b5dee2b2d2167baf1e03637f4b
1 <Canvas x:Name="root" 
2   xmlns="http://schemas.microsoft.com/client/2007"  
3   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="270" Height="70">
5   <Rectangle x:Name="rect" Canvas.Top="10" Canvas.Left="10" Width="50" Height="50" Fill="royalblue">
6     <Rectangle.Triggers>
7       <EventTrigger  RoutedEvent="Rectangle.Loaded" >
8        <BeginStoryboard>
9         <Storyboard 
10           BeginTime="0:0:1"
11           FillBehavior="HoldEnd">
12           <DoubleAnimation  
13             Storyboard.TargetName="rect"
14             Storyboard.TargetProperty="(Canvas.Left)"                                                                                                                     
15             Duration="0:0:2"
16             FillBehavior="Stop"
17             SpeedRatio="2"
18             From="100" To="210" 
19           />
20         </Storyboard>
21        </BeginStoryboard>
22      </EventTrigger>
23     </Rectangle.Triggers>
24   </Rectangle>
25 </Canvas>