* MoonlightTypeConverter.cs: Convert CacheMode's from strings.
[moon.git] / test / xaml / test-object-animation.xaml
blob6777cdbce4ddfc03a8fa83fb829da8862922f462
1 <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4     <Rectangle x:Name="rect" Stroke="Black" StrokeThickness="1" Canvas.Left="10" Canvas.Top="10" Width="100" Height="100">
6         <Rectangle.Fill>
7             <SolidColorBrush x:Name="rect-brush" Color="Red" />
8         </Rectangle.Fill>
12         <Rectangle.Triggers>
13             <EventTrigger RoutedEvent="Rectangle.Loaded">
14                 <BeginStoryboard>
15                     <Storyboard>
16                         <ObjectAnimationUsingKeyFrames
17                                 Storyboard.TargetName="rect"
18                                 Storyboard.TargetProperty="Fill"
19                                 Duration="0:0:4">
20                                 <ObjectAnimationUsingKeyFrames.KeyFrames>
21                                         
22                                         <DiscreteObjectKeyFrame KeyTime="0:0:1">
23                                                 <DiscreteObjectKeyFrame.Value>
24                                                         <SolidColorBrush Color="Yellow" />
25                                                 </DiscreteObjectKeyFrame.Value>
26                                         </DiscreteObjectKeyFrame>
28                                         <DiscreteObjectKeyFrame KeyTime="0:0:2">
29                                                 <DiscreteObjectKeyFrame.Value>
30                                                         <SolidColorBrush Color="Blue" />
31                                                 </DiscreteObjectKeyFrame.Value>
32                                         </DiscreteObjectKeyFrame>
34                                         <DiscreteObjectKeyFrame KeyTime="0:0:3">
35                                                 <DiscreteObjectKeyFrame.Value>
36                                                         <SolidColorBrush Color="Blue" />
37                                                 </DiscreteObjectKeyFrame.Value>
38                                         </DiscreteObjectKeyFrame>
40                                 </ObjectAnimationUsingKeyFrames.KeyFrames>
41                         </ObjectAnimationUsingKeyFrames>
42                     </Storyboard>
43                 </BeginStoryboard>
44              </EventTrigger>
45         </Rectangle.Triggers>
46     </Rectangle>
48 </Canvas>