แก้ไข

แชร์ผ่าน


RepeatBehavior Constructors

Definition

Overloads

RepeatBehavior(Double)

Initializes a new instance of the RepeatBehavior struct with the specified iteration count.

RepeatBehavior(TimeSpan)

Initializes a new instance of the RepeatBehavior struct with the specified repeat duration.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) RepeatBehavior struct. For more information, see RepeatBehavior in the UWP API reference.

RepeatBehavior(Double)

Initializes a new instance of the RepeatBehavior struct with the specified iteration count.

public:
 RepeatBehavior(double count);
public RepeatBehavior (double count);
new Windows.UI.Xaml.Media.Animation.RepeatBehavior : double -> Windows.UI.Xaml.Media.Animation.RepeatBehavior
Public Sub New (count As Double)

Parameters

count
Double

A number greater than or equal to 0 that specifies the number of iterations for an animation.

Exceptions

count evaluates to infinity, a value that is not a number, or is negative.

Applies to

RepeatBehavior(TimeSpan)

Initializes a new instance of the RepeatBehavior struct with the specified repeat duration.

public:
 RepeatBehavior(TimeSpan duration);
public RepeatBehavior (TimeSpan duration);
new Windows.UI.Xaml.Media.Animation.RepeatBehavior : TimeSpan -> Windows.UI.Xaml.Media.Animation.RepeatBehavior
Public Sub New (duration As TimeSpan)

Parameters

duration
TimeSpan

The total length of time that the Windows.UI.Xaml.Media.Animation.Timeline should play (its active duration).

Exceptions

duration evaluates to a negative time interval.

Applies to