Share via


ViewExtensions.LayoutTo(VisualElement, Rect, UInt32, Easing) メソッド

定義

によって指定された の VisualElement 境界を、 パラメーターで view 指定された四角形に容易にするタスクを bounds 返します。
public static System.Threading.Tasks.Task<bool> LayoutTo (this Microsoft.Maui.Controls.VisualElement view, Microsoft.Maui.Graphics.Rect bounds, uint length = 250, Microsoft.Maui.Easing? easing = default);
static member LayoutTo : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function LayoutTo (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

アニメーションに使用するイージング関数。

戻り値

TaskアニメーションがBoolean取り消されたかどうかを示す値を含む 。 true は、アニメーションが取り消されたことを示します。 false は、アニメーションが完了まで実行されたことを示します。

例外

viewnull の場合にスローされます。

適用対象