You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You write the following XAML code fragment.
<Rectangle Name="SplineTest">
<Rectangle.RenderTransform>
<TranslateTransform x:Name="SplineTestTrans" X="0" Y="0" />
</Rectangle.RenderTransform>
<Rectangle.Triggers>
<EventTrigger RoutedEvent="Rectangle.MouseLeftButtonDown">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
…
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Rectangle.Triggers>
</Rectangle>
You need to ensure that the Rectangle object shifts diagonally downwards when a user clicks it.
Which XAML code fragment should you use?
A.
<DoubleAnimation Storyboard.TargetProperty="RenderTransform. (TranslateTransform.X)" From="0" To="200"/>
B.
<DoubleAnimation Storyboard.TargetName= "SplineTestTrans" Storyboard.TargetProperty="RenderTransform.Angle" From="0" To="360" Duration="0:0:1"/>
C.
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Trans" Storyboard.TargetProperty="Y" Duration="0:0:15">
<LinearDoubleKeyFrame Value="350" KeyTime="0:0:7"/>
<LinearDoubleKeyFrame Value="50" KeyTime="0:0:5"/>
<LinearDoubleKeyFrame Value="200" KeyTime="0:0:3"/>
</DoubleAnimationUsingKeyFrames>
D.
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="SplineTestTrans" Storyboard.TargetProperty="X" Duration="0:0:15">
<SplineDoubleKeyFrame Value="350" KeyTime="0:0:7" KeySpline="0.0,1.0, 1.0,0.0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="SplineTestTrans"Storyboard.TargetProperty="Y" Duration="0:0:15">
<SplineDoubleKeyFrame Value="350" KeyTime="0:0:7" KeySpline="0.0,1.0, 1.0,0.0"/>
</DoubleAnimationUsingKeyFrames>