Share via


AnimatedVisualPlayer.PlayAsync(Double, Double, Boolean) Method

Definition

Starts playing the loaded animated visual, or does nothing if no animated visual is loaded.

public:
 virtual IAsyncAction ^ PlayAsync(double fromProgress, double toProgress, bool looped) = PlayAsync;
IAsyncAction PlayAsync(double const& fromProgress, double const& toProgress, bool const& looped);
public IAsyncAction PlayAsync(double fromProgress, double toProgress, bool looped);
function playAsync(fromProgress, toProgress, looped)
Public Function PlayAsync (fromProgress As Double, toProgress As Double, looped As Boolean) As IAsyncAction

Parameters

fromProgress
Double

double

The point from which to start the animation, as a value from 0 to 1.

toProgress
Double

double

The point at which to finish the animation, as a value from 0 to 1.

looped
Boolean

bool

If true, the animation loops continuously between fromProgress and toProgress. If false, the animation plays once then stops.

Returns

An async action that is completed when the play is stopped or, if looped is not set, when the play reaches toProgress.

Remarks

If toProgress is less than fromProgress, the animated visual will play from fromProgress to the end, then play from the beginning until it reaches toProgress. To play an animated visual in reverse, set the playback rate to a negative value.

Applies to