Timeline.AccelerationRatio Timeline.AccelerationRatio Timeline.AccelerationRatio Timeline.AccelerationRatio Property

定義

取得或設定值,這個值指定時刻表的 Duration 將時間從零加速至其最大速率所花費的百分比。Gets or sets a value specifying the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate.

public:
 property double AccelerationRatio { double get(); void set(double value); };
public double AccelerationRatio { get; set; }
member this.AccelerationRatio : double with get, set
Public Property AccelerationRatio As Double

屬性值

介於 0 和 1 (含) 之間的值,這個值指定時間軸的 Duration 在從零加速至其最大速率所經過時間的百分比。A value between 0 and 1, inclusive, that specifies the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate. 如果時間軸 DecelerationRatio 屬性也已設定,則 AccelerationRatioDecelerationRatio 總和必須小於或等於 1。If the timeline's DecelerationRatio property is also set, the sum of AccelerationRatio and DecelerationRatio must be less than or equal to 1. 預設值為 0。The default value is 0.

例外狀況

備註

AccelerationRatio使用屬性來建立會慢慢啟動的動畫, 並在時間執行時加速。Use the AccelerationRatio property to create animations that start slowly and then speed up as time progresses. AccelerationRatio屬性適用于建立輕鬆效果, 或讓移動看起來更自然。The AccelerationRatio property is useful for creating ease-in effects or making movement seem more natural. 同時使用DecelerationRatio和屬性來建立動畫, 使其啟動速度緩慢、加速, 然後在完成前再次變慢。 AccelerationRatioUse the AccelerationRatio and DecelerationRatio properties together to create animations that start slowly, speed up, and then slow down again before finishing.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field AccelerationRatioProperty
中繼資料屬性設定為trueMetadata properties set to true None

適用於

另請參閱