Langage

ViewExtensions.LayoutToAsync Méthode

Définition

Surcharges

Nom Description
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
Obsolète.
Retourne une tâche qui facilite les limites du VisualElement rectangle spécifié par view le rectangle spécifié par le bounds paramètre.
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
Obsolète.

Retourne une tâche qui facilite les limites du VisualElement rectangle spécifié par view le rectangle spécifié par le bounds paramètre.

LayoutToAsync(VisualElement, Rect, UInt32, Easing)

Source:
ViewExtensions.cs
Source:
ViewExtensions.cs

Attention

Use Translation to animate layout changes.

Retourne une tâche qui facilite les limites du VisualElement rectangle spécifié par view le rectangle spécifié par le bounds paramètre.
[System.Obsolete("Use Translation to animate layout changes.")]
public static System.Threading.Tasks.Task<bool> LayoutToAsync(this Microsoft.Maui.Controls.VisualElement view, Microsoft.Maui.Graphics.Rect bounds, uint length = 250, Microsoft.Maui.Easing? easing = default);
[<System.Obsolete("Use Translation to animate layout changes.")>]
static member LayoutToAsync : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function LayoutToAsync (view As VisualElement, bounds As Rect, 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.

bounds
Rect

Limites de disposition.

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.

Attributs

Exceptions

Levée quand view a la valeur null.

S’applique à

LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)

Attention

Use Translation to animate layout changes.

Retourne une tâche qui facilite les limites du VisualElement rectangle spécifié par view le rectangle spécifié par le bounds paramètre.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ LayoutToAsync(Microsoft::Maui::Controls::VisualElement ^ view, Microsoft::Maui::Graphics::Rect bounds, System::UInt32 length, Microsoft::Maui::Easing ^ easing, System::Threading::CancellationToken cancellationToken);
[System.Obsolete("Use Translation to animate layout changes.")]
public static System.Threading.Tasks.Task<bool> LayoutToAsync(this Microsoft.Maui.Controls.VisualElement view, Microsoft.Maui.Graphics.Rect bounds, uint length, Microsoft.Maui.Easing? easing, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use Translation to animate layout changes.")>]
static member LayoutToAsync : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect * uint32 * Microsoft.Maui.Easing * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function LayoutToAsync (view As VisualElement, bounds As Rect, length As UInteger, easing As Easing, cancellationToken As CancellationToken) As Task(Of Boolean)

Paramètres

view
VisualElement

Vue sur laquelle cette méthode fonctionne.

bounds
Rect

Limites de disposition.

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.

Attributs

Exceptions

Levée quand view a la valeur null.

S’applique à