語言

ViewExtensions.LayoutToAsync 方法

定義

多載

名稱 Description
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
已淘汰.
傳回工作,這個工作可簡化 由 VisualElement 參數所指定view之矩形的 界限bounds。
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
已淘汰.

回傳一個任務,將由參數指定的VisualElement矩形view的界限bounds放寬。

LayoutToAsync(VisualElement, Rect, UInt32, Easing)

來源:
ViewExtensions.cs
來源:
ViewExtensions.cs

警告

Use Translation to animate layout changes.

傳回工作,這個工作可簡化 由 VisualElement 參數所指定view之矩形的 界限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)

參數

view
VisualElement

此方法所依據的觀點。

bounds
Rect

格局很寬廣。

length
UInt32

動畫轉換的時間(以毫秒為單位)。 預設值是250。

easing
Easing

動畫用的緩和函數。

傳回

A Task 包含 Boolean 一個表示動畫是否被取消的值。 true 表示動畫已被取消。 false 表示動畫已完成。

屬性

例外狀況

當 是 view時拋出 null 。

適用於

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

來源:
ViewExtensions.cs

警告

Use Translation to animate layout changes.

回傳一個任務,將由參數指定的VisualElement矩形view的界限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)

參數

view
VisualElement

此方法所依據的觀點。

bounds
Rect

格局很寬廣。

length
UInt32

動畫轉換的時間(以毫秒為單位)。 預設值是250。

easing
Easing

動畫用的緩和函數。

cancellationToken
CancellationToken

A CancellationToken 用來取消動畫。

傳回

A Task 包含 Boolean 一個表示動畫是否被取消的值。 true 表示動畫已被取消。 false 表示動畫已完成。

屬性

例外狀況

當 是 view時拋出 null 。

適用於