ViewExtensions.LayoutToAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwisko | Opis |
|---|---|
| LayoutToAsync(VisualElement, Rect, UInt32, Easing) |
Przestarzałe.
view prostokąt określony przez bounds parametr . |
| LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken) |
Przestarzałe.
Zwraca zadanie, które ułatwia granice VisualElement obiektu określonego przez |
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
- Źródło:
- ViewExtensions.cs
- Źródło:
- ViewExtensions.cs
Uwaga
Use Translation to animate layout changes.
view prostokąt określony przez bounds parametr .[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)
Parametry
- view
- VisualElement
Widok, w którym działa ta metoda.
- bounds
- Rect
Granice układu.
- length
- UInt32
Czas, w milisekundach, nad którym ma animować przejście. Wartość domyślna to 250.
- easing
- Easing
Funkcja złagodzenia do użycia na potrzeby animacji.
Zwraca
Wartość Task zawierająca Boolean , która wskazuje, czy animacja została anulowana.
true wskazuje, że animacja została anulowana.
false wskazuje, że animacja została uruchomiona do ukończenia.
- Atrybuty
Wyjątki
Zgłaszany, gdy view ma wartość null.
Dotyczy
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
- Źródło:
- ViewExtensions.cs
Uwaga
Use Translation to animate layout changes.
Zwraca zadanie, które ułatwia granice VisualElement obiektu określonego przez view prostokąt określony przez bounds parametr .
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)
Parametry
- view
- VisualElement
Widok, w którym działa ta metoda.
- bounds
- Rect
Granice układu.
- length
- UInt32
Czas, w milisekundach, nad którym ma animować przejście. Wartość domyślna to 250.
- easing
- Easing
Funkcja złagodzenia do użycia na potrzeby animacji.
- cancellationToken
- CancellationToken
A CancellationToken , aby anulować animację.
Zwraca
Wartość Task zawierająca Boolean , która wskazuje, czy animacja została anulowana.
true wskazuje, że animacja została anulowana.
false wskazuje, że animacja została uruchomiona do ukończenia.
- Atrybuty
Wyjątki
Zgłaszany, gdy view ma wartość null.