Compartilhar via


Animation.Commit Método

Definição

Executa a animação owner com os parâmetros fornecidos.

public void Commit (Microsoft.Maui.Controls.IAnimatable owner, string name, uint rate = 16, uint length = 250, Microsoft.Maui.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
override this.Commit : Microsoft.Maui.Controls.IAnimatable * string * uint32 * uint32 * Microsoft.Maui.Easing * Action<double, bool> * Func<bool> -> unit
Public Sub Commit (owner As IAnimatable, name As String, Optional rate As UInteger = 16, Optional length As UInteger = 250, Optional easing As Easing = Nothing, Optional finished As Action(Of Double, Boolean) = Nothing, Optional repeat As Func(Of Boolean) = Nothing)

Parâmetros

owner
IAnimatable

A animação de propriedade que será animada.

name
String

O nome ou o identificador usado para acessar e controlar a animação e seu estado.

rate
UInt32

O tempo, em milissegundos, entre quadros.

length
UInt32

O número de milissegundos durante os quais interpolar a animação.

easing
Easing

A função de easing a ser usada para fazer a transição para dentro, para fora ou para dentro e para fora da animação.

finished
Action<Double,Boolean>

Uma ação a ser chamada quando a animação é concluída.

repeat
Func<Boolean>

Uma função que deve retornar true se a animação deve continuar.

Aplica-se a