here is the story boarding created via blend for windows phone app. It creates an animation for grid by transforming it from top to center position. but the issue is i want to do exact same thing from code behind . tell me how to do it. thanks so kindly help me in converting this code in c# so that i can run animation on this grid from code behind.
<Page.Resources>
<Storyboard x:Name="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="SecondaryGrid">
<EasingDoubleKeyFrame KeyTime="0" Value="3.731"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="3.731"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="SecondaryGrid">
<EasingDoubleKeyFrame KeyTime="0" Value="-456.468"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-7.463"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Page.Resources>