Share via


AnimatedVisualPlayer.SetProgress(Double) Method

Definition

Moves the progress of the animated visual to the given value, or does nothing if no animated visual is loaded.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 virtual void SetProgress(double progress) = SetProgress;
void SetProgress(double const& progress);
public void SetProgress(double progress);
Public Sub SetProgress (progress As Double)

Parameters

progress
Double

double

A value from 0 to 1 that represents the progress of the animated visual.

Remarks

If the animated visual was playing it will behave as if Stop was called first.

Applies to