ViewExtensions.LayoutToAsync Metoda

Definice

Přetížení

Name Description
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
Zastaralé.
Vrátí úlohu, která usnadňuje hranice VisualElement toho, co je určeno view obdélníkem určeným parametrem bounds .
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
Zastaralé.

Vrátí úlohu, která usnadňuje hranice VisualElement toho, co je určeno view obdélníkem určeným parametrem bounds .

LayoutToAsync(VisualElement, Rect, UInt32, Easing)

Zdroj:
ViewExtensions.cs
Zdroj:
ViewExtensions.cs

Upozornění

Use Translation to animate layout changes.

Vrátí úlohu, která usnadňuje hranice VisualElement toho, co je určeno view obdélníkem určeným parametrem bounds .
[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

Zobrazení, na kterém tato metoda funguje.

bounds
Rect

Hranice rozložení.

length
UInt32

Čas v milisekundách, po kterém se má přechod animovat. Výchozí hodnota je 250.

easing
Easing

Funkce usnadnění, která se má použít pro animaci.

Návraty

Boolean Obsahuje Task hodnotu, která označuje, jestli byla animace zrušena. true označuje, že animace byla zrušena. false označuje, že animace běžela na dokončení.

Atributy

Výjimky

Vyvolá se, když view je null.

Platí pro

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

Upozornění

Use Translation to animate layout changes.

Vrátí úlohu, která usnadňuje hranice VisualElement toho, co je určeno view obdélníkem určeným parametrem bounds .

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

Zobrazení, na kterém tato metoda funguje.

bounds
Rect

Hranice rozložení.

length
UInt32

Čas v milisekundách, po kterém se má přechod animovat. Výchozí hodnota je 250.

easing
Easing

Funkce usnadnění, která se má použít pro animaci.

cancellationToken
CancellationToken

A CancellationToken pro zrušení animace.

Návraty

Boolean Obsahuje Task hodnotu, která označuje, jestli byla animace zrušena. true označuje, že animace byla zrušena. false označuje, že animace běžela na dokončení.

Atributy

Výjimky

Vyvolá se, když view je null.

Platí pro