Author: toshok Date: 2007-06-20 02:54:06 -0400 (Wed, 20 Jun 2007) New Revision: 80292
Added: trunk/moon/test/xaml/test-zero-scale-animation.xaml Log: another test Added: trunk/moon/test/xaml/test-zero-scale-animation.xaml =================================================================== --- trunk/moon/test/xaml/test-zero-scale-animation.xaml 2007-06-20 06:52:17 UTC (rev 80291) +++ trunk/moon/test/xaml/test-zero-scale-animation.xaml 2007-06-20 06:54:06 UTC (rev 80292) @@ -0,0 +1,41 @@ +<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> + + <Ellipse x:Name="MovingEllipse" Fill="Purple" Width="100" Height="100" Canvas.Left="0"> + <Ellipse.RenderTransform> + <ScaleTransform x:Name="ellipseScale" ScaleX="1.0" ScaleY="1.0" /> + </Ellipse.RenderTransform> + + <Ellipse.Triggers> + + <EventTrigger RoutedEvent="Ellipse.Loaded"> + + <BeginStoryboard> + <Storyboard> + + <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipseScale" + Storyboard.TargetProperty="ScaleX"> + + <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" /> + <LinearDoubleKeyFrame Value="0.3" KeyTime="0:0:5" /> + <LinearDoubleKeyFrame Value="0.5" KeyTime="0:0:10" /> + <LinearDoubleKeyFrame Value="2.0" KeyTime="0:0:15" /> + + </DoubleAnimationUsingKeyFrames> + + <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipseScale" + Storyboard.TargetProperty="ScaleY"> + + <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" /> + <LinearDoubleKeyFrame Value="0.3" KeyTime="0:0:5" /> + <LinearDoubleKeyFrame Value="0.5" KeyTime="0:0:10" /> + <LinearDoubleKeyFrame Value="2.0" KeyTime="0:0:15" /> + + </DoubleAnimationUsingKeyFrames> + </Storyboard> + </BeginStoryboard> + </EventTrigger> + </Ellipse.Triggers> + </Ellipse> +</Canvas> + _______________________________________________ Mono-patches maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-patches
