Author: alanmc
Date: 2007-06-19 10:40:10 -0400 (Tue, 19 Jun 2007)
New Revision: 80162

Added:
   trunk/moon/test/xaml/test-animation-text.xaml
Log:
Added new test

Added: trunk/moon/test/xaml/test-animation-text.xaml
===================================================================
--- trunk/moon/test/xaml/test-animation-text.xaml       2007-06-19 14:39:56 UTC 
(rev 80161)
+++ trunk/moon/test/xaml/test-animation-text.xaml       2007-06-19 14:40:10 UTC 
(rev 80162)
@@ -0,0 +1,60 @@
+<Canvas
+       xmlns="http://schemas.microsoft.com/client/2007";
+       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
+       Width="640" Height="480"
+       Background="White"
+       >
+       <Canvas.Triggers>
+               <EventTrigger RoutedEvent="Canvas.Loaded">
+                       <BeginStoryboard>
+                               <Storyboard x:Name="Movement">
+
+                                       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Storyboard.TargetName="textBlock" 
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:03" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:04" Value="1.375"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:05" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:06" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:08" Value="1.98"/>
+                                       </DoubleAnimationUsingKeyFrames>
+                                       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Storyboard.TargetName="textBlock" 
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:03" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:04" Value="-0.5"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:05" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:06" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:08" Value="0.497"/>
+                                       </DoubleAnimationUsingKeyFrames>
+                                       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Storyboard.TargetName="textBlock" 
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:03" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:04" Value="1.756"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:05" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:06" Value="1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:08" Value="2.942"/>
+                                       </DoubleAnimationUsingKeyFrames>
+                                       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Storyboard.TargetName="textBlock" 
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:03" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:04" Value="-1"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:05" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:06" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:08" Value="-0.998"/>
+                                       </DoubleAnimationUsingKeyFrames>
+                                       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Storyboard.TargetName="textBlock" 
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:04" Value="0"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:05" Value="53.03"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:06" Value="180.171"/>
+                                               <SplineDoubleKeyFrame 
KeyTime="00:00:08" Value="359.897"/>
+                                       </DoubleAnimationUsingKeyFrames>
+                               </Storyboard>
+                       </BeginStoryboard>
+               </EventTrigger>
+       </Canvas.Triggers>
+       <TextBlock Width="Auto" Height="18.537" Canvas.Left="242" 
Canvas.Top="178" Text="Moonlight in 21 Days" TextWrapping="Wrap" 
RenderTransformOrigin="0.5,0.5" x:Name="textBlock">
+               <TextBlock.RenderTransform>
+                       <TransformGroup>
+                               <ScaleTransform ScaleX="1" ScaleY="1"/>
+                               <SkewTransform AngleX="0" AngleY="0"/>
+                               <RotateTransform Angle="0"/>
+                               <TranslateTransform X="0" Y="0"/>
+                       </TransformGroup>
+               </TextBlock.RenderTransform>
+       </TextBlock>
+</Canvas>


Property changes on: trunk/moon/test/xaml/test-animation-text.xaml
___________________________________________________________________
Name: svn:executable
   + *

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to