ViewExtensions.LayoutToAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| LayoutToAsync(VisualElement, Rect, UInt32, Easing) |
已过时.
view边界bounds。 |
| LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken) |
已过时.
返回一个任务,该任务可简化由VisualElement参数指定的矩形所指定的 |
LayoutToAsync(VisualElement, Rect, UInt32, Easing)
- Source:
- ViewExtensions.cs
- Source:
- ViewExtensions.cs
注意
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
用于动画的缓动函数。
返回
一 Task 个包含一个 Boolean 值,该值指示动画是否已取消。
true 指示已取消动画。
false 指示动画已运行到完成。
- 特性
例外
当 为 view时null引发。
适用于
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
- Source:
- 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 。
返回
一 Task 个包含一个 Boolean 值,该值指示动画是否已取消。
true 指示已取消动画。
false 指示动画已运行到完成。
- 特性
例外
当 为 view时null引发。