キーフレーム時間の経過と共に量が均等に分割される線形補間機能を提供します。
使用例: <Storyboard x:Name="storyBoard2"> <DoubleAnimationUsingKeyFrames AutoReverse="False" Storyboard.TargetName="rec" Storyboard.TargetProperty="Opacity"> <!-- 最初に透明度を0.1に設定する --> <LinearDoubleKeyFrame KeyTime="0:00:0" Value="0.1"/> <!-- 5秒の間に透明度を0.8に上々変化する --> <LinearDoubleKeyFrame KeyTime="0:00:5" Value="0.8"/> <!-- 6秒になったら、透明度をいきなり1.0に変化する --> <DiscreteDoubleKeyFrame KeyTime="0:00:6" Value="1.0" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MyAnimatedTranslateTransform" Storyboard.TargetProperty="X"> <!-- 前の透明度の変化を待つ --> <SplineDoubleKeyFrame KeySpline="0.0,0.0 1.0,1.0" Value="0" KeyTime="0:0:6" /> <!-- 前ステップ終わったら、6秒から15秒まで図形を右へ移動する、 前期は加速してアニメーション化し、中期は減速して、後期は再度加速し、終了する --> <SplineDoubleKeyFrame KeySpline="0.0,1.0 1.0,0.0" Value="340" KeyTime="0:0:15" /> </DoubleAnimationUsingKeyFrames> </Storyboard> MSDN情報: あなたのお住まいの地域で最安のブロードバンド選び コメント: |