RepeatBehavior.Count Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the number of times a Timeline should repeat.

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

public double Count { get; }

Property Value

Type: System.Double

The numeric value representing the number of iterations to repeat.

Exception Condition

This RepeatBehavior describes a repeat duration, not an iteration count.

To avoid throwing an exception when accessing this property, use the HasCount property first to verify that the RepeatBehavior represents an iteration count, not a repeat duration.

For more information about making a timeline repeat, see the Timeline.RepeatBehavior property.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top