ViewExtensions.LayoutToAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| LayoutToAsync(VisualElement, Rect, UInt32, Easing) |
古い.
viewの境界を、bounds パラメーターで指定された四角形に容易にするタスクを返します。 |
| LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken) |
古い.
VisualElementで指定された |
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
注意事項
Use Translation to animate layout changes.
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
アニメーションに使用するイージング関数。
返品
アニメーションが取り消されたかどうかを示すBoolean値を含むTask。
true は、アニメーションが取り消されたことを示します。
false は、アニメーションが完了まで実行されたことを示します。
- 属性
例外
viewがnullされるとスローされます。
適用対象
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
注意事項
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
アニメーションを取り消す CancellationToken 。
返品
アニメーションが取り消されたかどうかを示すBoolean値を含むTask。
true は、アニメーションが取り消されたことを示します。
false は、アニメーションが完了まで実行されたことを示します。
- 属性
例外
viewがnullされるとスローされます。