ThicknessAnimationBase.GetCurrentValue ThicknessAnimationBase.GetCurrentValue ThicknessAnimationBase.GetCurrentValue Method

定義

取得動畫的目前值。Gets the current value of the animation.

多載

GetCurrentValue(Object, Object, AnimationClock) GetCurrentValue(Object, Object, AnimationClock) GetCurrentValue(Object, Object, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

GetCurrentValue(Thickness, Thickness, AnimationClock) GetCurrentValue(Thickness, Thickness, AnimationClock) GetCurrentValue(Thickness, Thickness, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

GetCurrentValue(Object, Object, AnimationClock) GetCurrentValue(Object, Object, AnimationClock) GetCurrentValue(Object, Object, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

public:
 override System::Object ^ GetCurrentValue(System::Object ^ defaultOriginValue, System::Object ^ defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
public override sealed object GetCurrentValue (object defaultOriginValue, object defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
override this.GetCurrentValue : obj * obj * System.Windows.Media.Animation.AnimationClock -> obj

參數

defaultOriginValue
Object Object Object

提供給動畫的起始值 (如果動畫本身沒有開始值)。The origin value provided to the animation if the animation does not have its own start value.

defaultDestinationValue
Object Object Object

在動畫沒有自己的起始值之情況下,要提供給動畫的目的值。The destination value provided to the animation if the animation does not have its own destination value.

animationClock
AnimationClock AnimationClock AnimationClock

AnimationClock,可產生 CurrentTimeCurrentProgress 值,供動畫使用以產生其輸出值。The AnimationClock which can generate the CurrentTime or CurrentProgress value to be used by the animation to generate its output value.

傳回

動畫目前的值。The current value of the animation.

備註

defaultOriginValue參數的值取決於動畫在組合鏈中的位置:The value of the defaultOriginValue parameter depends on the animation's position in the composition chain:

  • 如果動畫是在組合鏈中的第一個位置, 而它取代了另一個defaultOriginValue動畫, 則會在被取代時, 是該動畫的輸出。If the animation is in the first position in a composition chain and it replaces another animation, defaultOriginValue is the output of that animation at the time it was replaced.

  • 如果動畫是在組合鏈中的第一個位置, 而且沒有可取代的動畫, defaultOriginValue就是動畫屬性的基底值。If the animation is in the first position in a composition chain and no animation exists to replace, defaultOriginValue is the base value of the animated property.

  • 如果這個動畫不是在組合鏈的第一個位置, defaultOriginValue則是上一個動畫在AnimationClock具有 not Stopped之組合鏈中所傳回的值。If this animation is not in the first position of a composition chain, then defaultOriginValue is the value that is returned by the previous animation in the composition chain that has an AnimationClock that is not Stopped.

defaultDestinationValue參數的值取決於是否有先前的屬性Trigger組合層。The value of the defaultDestinationValue parameter depends on whether there is a previous property Trigger composition layer.

  • 如果有先前的屬性Trigger組合層, defaultDestinationValue就是該圖層的輸出。If there is a previous property Trigger composition layer, defaultDestinationValue is the output from that layer.

  • 如果沒有先前的組合圖層, defaultDestinationValue就是您要製作動畫之屬性的基底值。If there is no previous composition layer, defaultDestinationValue is the base value of the property that you are animating.

如需動畫組合的詳細資訊, 請參閱動畫和計時系統總覽For more information about animation composition, see the Animation and Timing System Overview. 如需建立自訂動畫類型的詳細資訊, 請參閱自訂動畫總覽For more information about creating custom animation types, see the Custom Animations Overview.

GetCurrentValue(Thickness, Thickness, AnimationClock) GetCurrentValue(Thickness, Thickness, AnimationClock) GetCurrentValue(Thickness, Thickness, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

public:
 System::Windows::Thickness GetCurrentValue(System::Windows::Thickness defaultOriginValue, System::Windows::Thickness defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
public System.Windows.Thickness GetCurrentValue (System.Windows.Thickness defaultOriginValue, System.Windows.Thickness defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
override this.GetCurrentValue : System.Windows.Thickness * System.Windows.Thickness * System.Windows.Media.Animation.AnimationClock -> System.Windows.Thickness

參數

defaultOriginValue
Thickness Thickness Thickness

提供給動畫的起始值 (如果動畫本身沒有開始值)。The origin value provided to the animation if the animation does not have its own start value.

defaultDestinationValue
Thickness Thickness Thickness

在動畫沒有自己的起始值之情況下,要提供給動畫的目的值。The destination value provided to the animation if the animation does not have its own destination value.

animationClock
AnimationClock AnimationClock AnimationClock

AnimationClock,可產生 CurrentTimeCurrentProgress 值,供動畫使用以產生其輸出值。The AnimationClock which can generate the CurrentTime or CurrentProgress value to be used by the animation to generate its output value.

傳回

這個動畫的目前值。The current value of this animation.

備註

defaultOriginValue參數的值取決於動畫在組合鏈中的位置:The value of the defaultOriginValue parameter depends on the animation's position in the composition chain:

  • 如果動畫是在組合鏈中的第一個位置, 而它取代了另一個defaultOriginValue動畫, 則會在被取代時, 是該動畫的輸出。If the animation is in the first position in a composition chain and it replaces another animation, defaultOriginValue is the output of that animation at the time it was replaced.

  • 如果動畫是在組合鏈中的第一個位置, 而且沒有可取代的動畫, defaultOriginValue就是動畫屬性的基底值。If the animation is in the first position in a composition chain and no animation exists to replace, defaultOriginValue is the base value of the animated property.

  • 如果這個動畫不是在組合鏈的第一個位置, defaultOriginValue則是上一個動畫在AnimationClock具有 not Stopped之組合鏈中所傳回的值。If this animation is not in the first position of a composition chain, then defaultOriginValue is the value that is returned by the previous animation in the composition chain that has an AnimationClock that is not Stopped.

defaultDestinationValue參數的值取決於是否有先前的屬性Trigger組合層。The value of the defaultDestinationValue parameter depends on whether there is a previous property Trigger composition layer.

  • 如果有先前的屬性Trigger組合層, defaultDestinationValue就是該圖層的輸出。If there is a previous property Trigger composition layer, defaultDestinationValue is the output from that layer.

  • 如果沒有先前的組合圖層, defaultDestinationValue就是您要製作動畫之屬性的基底值。If there is no previous composition layer, defaultDestinationValue is the base value of the property that you are animating.

如需動畫組合的詳細資訊, 請參閱動畫和計時系統總覽For more information about animation composition, see the Animation and Timing System Overview. 如需建立自訂動畫類型的詳細資訊, 請參閱自訂動畫總覽For more information about creating custom animation types, see the Custom Animations Overview.

適用於