1

これは私だけですか?RepeatBehaviorExpression Blend 4 のアニメーションでは機能しないようです。次のアニメーションがあります。

<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" 
    Storyboard.TargetName="WaitDoc" RepeatBehavior="0:0:2">
                <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="180"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
</DoubleAnimationUsingKeyFrames>

このアニメーションが 2 秒間実行されることを期待していますが、[オブジェクトとタイムライン]ペインの [再生] ボタンをクリックすると 1 回だけ実行されます。5xなどの値も試してみましたが、同じ動作が得られました。

毎分の変更をテストするためにプロジェクト全体を実行したくありません。再生ボタンは、定義どおりに再生する必要があります。ここで何か不足していますか?

編集:BeginTimeさらに、ブレンドも属性を尊重していないことがわかりました。

4

1 に答える 1

0

これを試して :

  <DoubleAnimationUsingKeyFrames   
                  Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children) [2].(RotateTransform.Angle)" 
Storyboard.TargetName="WaitDoc" Duration="0:0:2" RepeatBehavior="Forever">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:1.1" Value="180"/>
            <EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
  </DoubleAnimationUsingKeyFrames>
于 2013-09-04T02:16:46.777 に答える