Привет, я определяю свою раскадровку как ресурс в 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>
, и теперь я пытаюсь изменить значение одного из EasingDoubleKeyFrames:
private void test(object sender, RoutedEventArgs e)
{
point.SetValue(EasingDoubleKeyFrame.ValueProperty, 400);
vor.Begin();
}
, оно не работает,Вы знаете, почему нет?