ViewExtensions.LayoutToAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| LayoutToAsync(VisualElement, Rect, UInt32, Easing) |
Obsoleti.
view al rettangolo specificato dal bounds parametro . |
| LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken) |
Obsoleti.
Restituisce un'attività che semplifica i limiti dell'oggetto VisualElement specificato da |
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
- Origine:
- ViewExtensions.cs
- Origine:
- ViewExtensions.cs
Attenzione
Use Translation to animate layout changes.
view al rettangolo specificato dal bounds parametro .[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)
Parametri
- view
- VisualElement
Visualizzazione su cui opera questo metodo.
- bounds
- Rect
Limiti del layout.
- length
- UInt32
Tempo, espresso in millisecondi, su cui animare la transizione. Il valore predefinito è 250.
- easing
- Easing
Funzione di interpolazione da usare per l'animazione.
Valori restituiti
Oggetto Task contenente un Boolean valore che indica se l'animazione è stata annullata.
true indica che l'animazione è stata annullata.
false indica che l'animazione è stata eseguita fino al completamento.
- Attributi
Eccezioni
Generata quando view è null.
Si applica a
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
Attenzione
Use Translation to animate layout changes.
Restituisce un'attività che semplifica i limiti dell'oggetto VisualElement specificato da view al rettangolo specificato dal bounds parametro .
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)
Parametri
- view
- VisualElement
Visualizzazione su cui opera questo metodo.
- bounds
- Rect
Limiti del layout.
- length
- UInt32
Tempo, espresso in millisecondi, su cui animare la transizione. Il valore predefinito è 250.
- easing
- Easing
Funzione di interpolazione da usare per l'animazione.
- cancellationToken
- CancellationToken
Oggetto CancellationToken per annullare l'animazione.
Valori restituiti
Oggetto Task contenente un Boolean valore che indica se l'animazione è stata annullata.
true indica che l'animazione è stata annullata.
false indica che l'animazione è stata eseguita fino al completamento.
- Attributi
Eccezioni
Generata quando view è null.