Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.21 KB

animatedvisualplayer_playasync_539275755.md

File metadata and controls

41 lines (23 loc) · 1.21 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer.PlayAsync(System.Double,System.Double,System.Boolean)
winrt method

Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer.PlayAsync

-description

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

-parameters

-param fromProgress

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

-param toProgress

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

-param looped

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.

-see-also

-examples