Duration Property
Collapse the table of content
Expand the table of content

RepeatBehavior.Duration Property

 

Gets the total length of time a Timeline should play.

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

member Duration : TimeSpan with get

Property Value

Type: System.TimeSpan

The total length of time a timeline should play.

Exception Condition
InvalidOperationException

This RepeatBehavior does not describe a repeat duration; it describes an iteration count.

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

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

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft