MatrixAnimationBase.GetCurrentValueCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中實作時,會計算動畫的當前值。
protected:
abstract System::Windows::Media::Matrix GetCurrentValueCore(System::Windows::Media::Matrix defaultOriginValue, System::Windows::Media::Matrix defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
protected abstract System.Windows.Media.Matrix GetCurrentValueCore(System.Windows.Media.Matrix defaultOriginValue, System.Windows.Media.Matrix defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
abstract member GetCurrentValueCore : System.Windows.Media.Matrix * System.Windows.Media.Matrix * System.Windows.Media.Animation.AnimationClock -> System.Windows.Media.Matrix
Protected MustOverride Function GetCurrentValueCore (defaultOriginValue As Matrix, defaultDestinationValue As Matrix, animationClock As AnimationClock) As Matrix
參數
- defaultOriginValue
- Matrix
建議的起始值,若動畫沒有明確設定的起始值,則使用。
- defaultDestinationValue
- Matrix
建議的目的地值,若動畫沒有明確設定的結束值,則使用。
- animationClock
- AnimationClock
一個AnimationClock產生CurrentTimeCurrentProgress或由主機使用的動畫的
傳回
這個動畫認為應該是該房產的當前價值。
備註
參數的 defaultOriginValue 值取決於動畫在合成鏈中的位置:
如果動畫位於合成鏈的第一位,並且它替換了另一個動畫,則
defaultOriginValue該動畫在被替換時的輸出。如果動畫位於合成鏈的第一位且沒有可替代的動畫,
defaultOriginValue則是該動畫屬性的基底值。若此動畫不在合成鏈的第一位置,則
defaultOriginValue是前一個具有 AnimationClock 非 的 Stopped合成鏈動畫回傳的值。
參數 defaultDestinationValue 的值取決於是否存在先前的性質 Trigger 組成層。
若存在先前的屬性 Trigger 組成層,則
defaultDestinationValue為該層的輸出。如果沒有之前的合成圖層,則
defaultDestinationValue是你正在動畫的屬性的基底值。
欲了解更多動畫構圖資訊,請參閱 動畫與時序系統概述。 欲了解更多關於建立自訂動畫類型的資訊,請參閱 自訂動畫總覽。