Langage

ViewExtensions.RotateToAsync Méthode

Définition

Surcharges

Nom Description
RotateToAsync(VisualElement, Double, UInt32, Easing)

Retourne une tâche qui fait pivoter celle VisualElement spécifiée par view celle-ci est décrite par les paramètres et rotation les lengtheasingparamètres.

RotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

Retourne une tâche qui fait pivoter celle VisualElement spécifiée par view celle-ci est décrite par les paramètres et rotation les lengtheasingparamètres.

RotateToAsync(VisualElement, Double, UInt32, Easing)

Source:
ViewExtensions.cs
Source:
ViewExtensions.cs

Retourne une tâche qui fait pivoter celle VisualElement spécifiée par view celle-ci est décrite par les paramètres et rotation les lengtheasingparamètres.

public static System.Threading.Tasks.Task<bool> RotateToAsync(this Microsoft.Maui.Controls.VisualElement view, double rotation, uint length = 250, Microsoft.Maui.Easing? easing = default);
static member RotateToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RotateToAsync (view As VisualElement, rotation As Double, Optional length As UInteger = 250, Optional easing As Easing = Nothing) As Task(Of Boolean)

Paramètres

view
VisualElement

Vue sur laquelle cette méthode fonctionne.

rotation
Double

Valeur de rotation finale.

length
UInt32

Temps, en millisecondes, sur lequel animer la transition. La valeur par défaut est 250.

easing
Easing

Fonction d’accélération à utiliser pour l’animation.

Retours

Contenant Task une Boolean valeur qui indique si l’animation a été annulée. true indique que l’animation a été annulée. false indique que l’animation s’est exécutée jusqu’à la fin.

Exceptions

Levée quand view a la valeur null.

S’applique à

RotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

Retourne une tâche qui fait pivoter celle VisualElement spécifiée par view celle-ci est décrite par les paramètres et rotation les lengtheasingparamètres.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ RotateToAsync(Microsoft::Maui::Controls::VisualElement ^ view, double rotation, System::UInt32 length, Microsoft::Maui::Easing ^ easing, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<bool> RotateToAsync(this Microsoft.Maui.Controls.VisualElement view, double rotation, uint length, Microsoft.Maui.Easing? easing, System.Threading.CancellationToken cancellationToken);
static member RotateToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RotateToAsync (view As VisualElement, rotation As Double, length As UInteger, easing As Easing, cancellationToken As CancellationToken) As Task(Of Boolean)

Paramètres

view
VisualElement

Vue sur laquelle cette méthode fonctionne.

rotation
Double

Valeur de rotation finale.

length
UInt32

Temps, en millisecondes, sur lequel animer la transition. La valeur par défaut est 250.

easing
Easing

Fonction d’accélération à utiliser pour l’animation.

cancellationToken
CancellationToken

A CancellationToken pour annuler l’animation.

Retours

Contenant Task une Boolean valeur qui indique si l’animation a été annulée. true indique que l’animation a été annulée. false indique que l’animation s’est exécutée jusqu’à la fin.

Exceptions

Levée quand view a la valeur null.

S’applique à