Animation.Commit 方法

定義

以提供的參數執行 owner 動畫。

public void Commit (Xamarin.Forms.IAnimatable owner, string name, uint rate = 16, uint length = 250, Xamarin.Forms.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
member this.Commit : Xamarin.Forms.IAnimatable * string * uint32 * uint32 * Xamarin.Forms.Easing * Action<double, bool> * Func<bool> -> unit

參數

owner
IAnimatable

將播放動畫的主控動畫。

name
System.String

用來存取和追蹤動畫及其狀態的名稱或控制代碼。

rate
System.UInt32

畫面與畫面之間的時間間隔,單位為毫秒。

length
System.UInt32

插入動畫的毫秒數。

easing
Easing

轉入、轉出,或轉入轉出動畫所使用的 easing 函式。

finished
System.Action<System.Double,System.Boolean>

動畫完成時要呼叫的動作。

repeat
System.Func<System.Boolean>

繼續動畫時會傳回 true 的函式。

適用於