~ubuntu-branches/ubuntu/natty/moon/natty

« back to all changes in this revision

Viewing changes to test/xaml/test-animated-brush-relativetransform.xaml

  • 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
<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>