Timeline.RepeatBehavior Property

Definition

Gets or sets the repeating behavior of this timeline.

Equivalent WinUI property: Microsoft.UI.Xaml.Media.Animation.Timeline.RepeatBehavior.

RepeatBehavior RepeatBehavior();

void RepeatBehavior(RepeatBehavior value);
public RepeatBehavior RepeatBehavior { get; set; }
var repeatBehavior = timeline.repeatBehavior;
timeline.repeatBehavior = repeatBehavior;
Public Property RepeatBehavior As RepeatBehavior
<timeline RepeatBehavior="repeatBehaviorValue"/>

Property Value

RepeatBehavior

An iteration Count that specifies the number of times the timeline should play, a TimeSpan value that specifies the total length of this timeline's active period, or the special value Forever, which specifies that the timeline should repeat indefinitely. The default value is a RepeatBehavior with a Count value of 1, which indicates that the timeline plays once.

Remarks

For more info and examples, see the RepeatBehavior Struct.

Applies to