次の方法で共有


AnimationExtensions.AnimateKinetic Method

Definition

Sets the specified parameters and starts the kinetic animation.

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)

Parameters

self
IAnimatable

The object on which this method will be run.

name
String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

callback
Func<Double,Double,Boolean>

An action that is called with successive animation values.

velocity
Double

The amount that the animation progresses in each animation step. For example, a velocity of 1 progresses at the default speed.

drag
Double

The amount that the progression speed is reduced per frame. Can be negative.

finished
Action

An action to call when the animation is finished.

animationManager
IAnimationManager

Applies to