Windows Phone - Storyboard TargetName zur Laufzeit
Wie kann ich TargetName für DoubleAnimationUsingKeyFrames zur Laufzeit festlegen?
<Storyboard x:Name="sr">
<DoubleAnimationUsingKeyFrames x:Name="keyFrameDA" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)" Storyboard.TargetName="cardBack">
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
Ich habe versucht
Storyboard.SetTargetName(keyFrameDA, "cardBack");
Es gibt jedoch keine solche Eigenschaft für DoubleAnimationUsingKeyFrames. Vielen Dank.
Aktualisieren: Und dieser Fehler wird ausgelöst, wenn ich diesen Code verwende:
Storyboard.SetTargetProperty(keyFrameDa, new PropertyPath(PlaneProjection.RotationXProperty));
Storyboard.SetTarget(keyFrameDa, cardBack.Projection);
Fehler: KeyFramesProperty - Der Wert des Felds 'KeyFramesProperty' kann nicht abgerufen werden, da keine Informationen zur enthaltenen Klasse verfügbar sind.