-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer.PlayAsync(System.Double,System.Double,System.Boolean) |
winrt method |
Starts playing the loaded animated visual, or does nothing if no animated visual is loaded.
The point from which to start the animation, as a value from 0 to 1.
The point at which to finish the animation, as a value from 0 to 1.
If true, the animation loops continuously between fromProgress and toProgress. If false, the animation plays once then stops.
An async action that is completed when the play is stopped or, if looped is not set, when the play reaches toProgress.
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.