Share via


ProgressBar.ProgressTo(Double, UInt32, Easing) Method

Definition

Animates the Progress property from its current value to the specified value.

public:
 System::Threading::Tasks::Task<bool> ^ ProgressTo(double value, System::UInt32 length, Microsoft::Maui::Easing ^ easing);
public System.Threading.Tasks.Task<bool> ProgressTo(double value, uint length, Microsoft.Maui.Easing easing);
member this.ProgressTo : double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
Public Function ProgressTo (value As Double, length As UInteger, easing As Easing) As Task(Of Boolean)

Parameters

value
Double

The target progress value (0.0 to 1.0).

length
UInt32

The length of the animation in milliseconds.

easing
Easing

The easing function to use for the animation.

Returns

A task that completes when the animation finishes, with a result indicating whether the animation completed successfully.

Applies to