* MoonlightTypeConverter.cs: Convert CacheMode's from strings.
[moon.git] / test / xaml / test-animated-brush-relativetransform.xaml
blob881aae817a7ab56b5362694b49b98315cc521a7f
1 <Canvas
2   xmlns="http://schemas.microsoft.com/client/2007"
3   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4   Width="400" Height="400">
5   <Rectangle Width="63" Height="76" Canvas.Top="10" Canvas.Left="10">
6     <Rectangle.Fill>
7      <ImageBrush ImageSource="mono.png" >
8        <ImageBrush.RelativeTransform>
9          <RotateTransform x:Name="Rotation" CenterX="0.5" CenterY="0.5" Angle="0" />
10        </ImageBrush.RelativeTransform>
11      </ImageBrush>
12    </Rectangle.Fill>
13    <Rectangle.Triggers>
14      <TriggerCollection>
15         <EventTrigger RoutedEvent="Rectangle.Loaded">
16            <BeginStoryboard>
17              <Storyboard>
18                 <DoubleAnimation Storyboard.TargetName="Rotation" Storyboard.TargetProperty="Angle" From="0" To="360" Duration="00:00:30" />
19               </Storyboard>
20             </BeginStoryboard>
21         </EventTrigger>
22       </TriggerCollection>
23     </Rectangle.Triggers>
24   </Rectangle>
25 </Canvas>