RepeatOption Struct

Definition

A type describing the repeat behavior for a custom animation.

[Windows.Foundation.Metadata.CreateFromString(MethodName="Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption.Parse")]
public readonly struct RepeatOption
[<Windows.Foundation.Metadata.CreateFromString(MethodName="Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption.Parse")>]
type RepeatOption = struct
Public Structure RepeatOption
Inheritance
RepeatOption
Attributes
Windows.Foundation.Metadata.CreateFromStringAttribute

Properties

Forever

Gets a RepeatOption value indicating an animation that repeats forever.

Once

Gets a RepeatOption value representing a single iteration.

Methods

Count(Int32)

Creates a RepeatOption value with the specified number of iterations.

Parse(String)

Parses a RepeatOption value from a String. The allowed values are either non-negative integers, or "Forever".

ToBehaviorAndCount()

Gets the Windows.UI.Composition.AnimationIterationBehavior and count values matching the current RepeatOption value. If the current value represents an infinitely repeating animation, the returned count will be set to 1.

ToRepeatBehavior()

Gets a RepeatBehavior value corresponding to the current RepeatOption value.

Applies to