次の方法で共有


AnimationExtensions.AnimateKinetic メソッド

定義

指定のパラメーターを設定し、運動アニメーションを開始します。

public static void AnimateKinetic (this Microsoft.Maui.Controls.IAnimatable self, string name, Func<double,double,bool> callback, double velocity, double drag, Action finished = default, Microsoft.Maui.Animations.IAnimationManager animationManager = default);
static member AnimateKinetic : Microsoft.Maui.Controls.IAnimatable * string * Func<double, double, bool> * double * double * Action * Microsoft.Maui.Animations.IAnimationManager -> unit
<Extension()>
Public Sub AnimateKinetic (self As IAnimatable, name As String, callback As Func(Of Double, Double, Boolean), velocity As Double, drag As Double, Optional finished As Action = Nothing, Optional animationManager As IAnimationManager = Nothing)

パラメーター

self
IAnimatable

このメソッドが実行されるオブジェクト。

name
String

そのアニメーションが継続している間、その兄弟アニメーションや親アニメーションに対して一意である必要があるアニメーション キー。

callback
Func<Double,Double,Boolean>

連続するアニメーション値で呼び出されるアクション。

velocity
Double

アニメーションの各ステップでアニメーションが進行する量。 たとえば、速度は既定の 1 速度で進行します。

drag
Double

フレームごとに進行速度が減る量。 負の値にできます。

finished
Action

アニメーションの完了時に呼び出されるアクション。

animationManager
IAnimationManager

適用対象