Hi I define my Storyboard as Resource in XAML:
<Storyboard x:Name="vor">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="master">
<EasingDoubleKeyFrame x:Name="point" KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:2" Value="700"/>
<开发者_开发百科/DoubleAnimationUsingKeyFrames>
</Storyboard>
and now I try to modify the Value from one of the EasingDoubleKeyFrames:
private void test(object sender, RoutedEventArgs e)
{
point.SetValue(EasingDoubleKeyFrame.ValueProperty, 400);
vor.Begin();
}
it doesn't work. You know why not?
精彩评论