Språk

ViewExtensions.RelScaleToAsync Metod

Definition

Överlagringar

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

Returnerar en aktivitet som skalar den VisualElement som anges av view från den aktuella skalan till dscale.

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

Returnerar en aktivitet som skalar den VisualElement som anges av view från den aktuella skalan till dscale.

RelScaleToAsync(VisualElement, Double, UInt32, Easing)

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

Returnerar en aktivitet som skalar den VisualElement som anges av view från den aktuella skalan till dscale.

public static System.Threading.Tasks.Task<bool> RelScaleToAsync(this Microsoft.Maui.Controls.VisualElement view, double dscale, uint length = 250, Microsoft.Maui.Easing? easing = default);
static member RelScaleToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RelScaleToAsync (view As VisualElement, dscale 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.

dscale
Double

Den relativa skalan.

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

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

Returnerar en aktivitet som skalar den VisualElement som anges av view från den aktuella skalan till dscale.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ RelScaleToAsync(Microsoft::Maui::Controls::VisualElement ^ view, double dscale, System::UInt32 length, Microsoft::Maui::Easing ^ easing, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<bool> RelScaleToAsync(this Microsoft.Maui.Controls.VisualElement view, double dscale, uint length, Microsoft.Maui.Easing? easing, System.Threading.CancellationToken cancellationToken);
static member RelScaleToAsync : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function RelScaleToAsync (view As VisualElement, dscale 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.

dscale
Double

Den relativa skalan.

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