AnimationExtensions.Animate 方法

定義

多載

Animate(IAnimatable, String, Action<Double>, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

Animate(IAnimatable, String, Action<Double>, Double, Double, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

Animate(IAnimatable, String, Action<Double>, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

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

參數

self
IAnimatable

將於其上執行此方法的物件。

name
String

動畫期間在其同層級及父代動畫間皆應為唯一的動畫索引鍵。

callback
Action<Double>

使用連續動畫值呼叫的動作。

rate
UInt32

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

length
UInt32

插入動畫的毫秒數。

easing
Easing

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

finished
Action<Double,Boolean>

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

repeat
Func<Boolean>

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

適用於

Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

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

參數

self
IAnimatable

將於其上執行此方法的物件。

name
String

動畫期間在其同層級及父代動畫間皆應為唯一的動畫索引鍵。

animation
Animation

要執行的動畫。

rate
UInt32

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

length
UInt32

插入動畫的毫秒數。

easing
Easing

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

finished
Action<Double,Boolean>

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

repeat
Func<Boolean>

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

適用於

Animate(IAnimatable, String, Action<Double>, Double, Double, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

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

參數

self
IAnimatable

將於其上執行此方法的物件。

name
String

動畫期間在其同層級及父代動畫間皆應為唯一的動畫索引鍵。

callback
Action<Double>

使用連續動畫值呼叫的動作。

start
Double

目前動畫中的分數,表示開始動畫的位置。

end
Double

目前動畫中的分數,表示停止動畫的位置。

rate
UInt32

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

length
UInt32

插入動畫的毫秒數。

easing
Easing

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

finished
Action<Double,Boolean>

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

repeat
Func<Boolean>

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

適用於

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>)

設定指定參數並開始動畫。

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

類型參數

T

參數

self
IAnimatable

將於其上執行此方法的物件。

name
String

動畫期間在其同層級及父代動畫間皆應為唯一的動畫索引鍵。

transform
Func<Double,T>

將動畫時間對應至新時間值的函式。

callback
Action<T>

使用連續動畫值呼叫的動作。

rate
UInt32

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

length
UInt32

插入動畫的毫秒數。

easing
Easing

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

finished
Action<T,Boolean>

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

repeat
Func<Boolean>

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

適用於