Partager via


AnimationExtensions.AbortAnimation(IAnimatable, String) Méthode

Définition

Arrête l’animation.

public:
[System::Runtime::CompilerServices::Extension]
 static bool AbortAnimation(Microsoft::Maui::Controls::IAnimatable ^ self, System::String ^ handle);
public static bool AbortAnimation (this Microsoft.Maui.Controls.IAnimatable self, string handle);
static member AbortAnimation : Microsoft.Maui.Controls.IAnimatable * string -> bool
<Extension()>
Public Function AbortAnimation (self As IAnimatable, handle As String) As Boolean

Paramètres

self
IAnimatable

Objet sur lequel cette méthode sera exécutée.

handle
String

Clé d’animation qui doit être unique parmi ses animations sœurs et parents pendant la durée de l’animation.

Retours

Remarques

Si handle elle fait référence à une animation qui appartient à cette IAnimatable instance, ses gestionnaires tweener sont supprimés, le tweener est arrêté, l’animation est supprimée de cette IAnimatable instance et elle est marquée comme terminée. S’il handle fait référence à l’une des cinétiques qui appartiennent à cette IAnimatable instance, elle et son graduation sont supprimées.

S’applique à