Språk

ViewExtensions.RelRotateToAsync Metod

Definition

Överlagringar

Name Description
RelRotateToAsync(VisualElement, Double, UInt32, Easing)

Roterar det VisualElement som anges av view från den aktuella rotationen av drotation.

RelRotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

Roterar det VisualElement som anges av view från den aktuella rotationen av drotation.

RelRotateToAsync(VisualElement, Double, UInt32, Easing)

Källa:
ViewExtensions.cs
Källa:
ViewExtensions.cs

Roterar det VisualElement som anges av view från den aktuella rotationen av drotation.

public static System.Threading.Tasks.Task<bool> RelRotateToAsync(this Microsoft.Maui.Controls.VisualElement view, double drotation, uint length = 250, Microsoft.Maui.Easing? easing = default);
static member RelRotateToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RelRotateToAsync (view As VisualElement, drotation As Double, Optional length As UInteger = 250, Optional easing As Easing = Nothing) As Task(Of Boolean)

Parametrar

view
VisualElement

Vyn som den här metoden fungerar i.

drotation
Double

Den relativa rotationen.

length
UInt32

Tiden, i millisekunder, över vilken övergången ska animeras. Standardvärdet är 250.

easing
Easing

Den lättande funktion som ska användas för animeringen.

Returer

Ett Task som innehåller ett Boolean värde som anger om animeringen avbröts. true anger att animeringen avbröts. false anger att animeringen har slutförts.

Undantag

Utlöses när view är null.

Gäller för

RelRotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

Roterar det VisualElement som anges av view från den aktuella rotationen av drotation.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ RelRotateToAsync(Microsoft::Maui::Controls::VisualElement ^ view, double drotation, System::UInt32 length, Microsoft::Maui::Easing ^ easing, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<bool> RelRotateToAsync(this Microsoft.Maui.Controls.VisualElement view, double drotation, uint length, Microsoft.Maui.Easing? easing, System.Threading.CancellationToken cancellationToken);
static member RelRotateToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RelRotateToAsync (view As VisualElement, drotation As Double, length As UInteger, easing As Easing, cancellationToken As CancellationToken) As Task(Of Boolean)

Parametrar

view
VisualElement

Vyn som den här metoden fungerar i.

drotation
Double

Den relativa rotationen.

length
UInt32

Tiden, i millisekunder, över vilken övergången ska animeras. Standardvärdet är 250.

easing
Easing

Den lättande funktion som ska användas för animeringen.

cancellationToken
CancellationToken

A CancellationToken för att avbryta animeringen.

Returer

Ett Task som innehåller ett Boolean värde som anger om animeringen avbröts. true anger att animeringen avbröts. false anger att animeringen har slutförts.

Undantag

Utlöses när view är null.

Gäller för