AnimatedVisualPlayer.PlayAsync(Double, Double, Boolean) AnimatedVisualPlayer.PlayAsync(Double, Double, Boolean) AnimatedVisualPlayer.PlayAsync(Double, Double, Boolean) AnimatedVisualPlayer.PlayAsync(Double, Double, Boolean) Method

Definition

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

public : IAsyncAction PlayAsync(double fromProgress, double toProgress, bool looped)
IAsyncAction PlayAsync(double fromProgress, double toProgress, bool looped) const;
public IAsyncAction PlayAsync(Double fromProgress, Double toProgress, Boolean 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 Boolean

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