Export (0) Print
Expand All
Key
M11
M12
M21
M22
Tag
Uri
X1
X2
Y1
Y2
Expand Minimize
This topic has not yet been rated - Rate this topic

RepeatBehavior (Timeline)

Silverlight

Gets or sets the repeating behavior of a timeline.

<object RepeatBehavior="RepeatBehavior"  .../>
value = object.RepeatBehavior
object.RepeatBehavior = value

Type: RepeatBehavior

Describes the repeating behavior of the timeline

This property is read/write. The default is 1x (one iteration).

RepeatBehavior has three possible modes: a duration, an iteration count, or the literal Forever. The duration mode is assumed if there is no literal x in the string. To specify a duration in seconds, you must precede the value with "0:0:", because the duration is in the format [days.]hours:minutes:seconds.

See RepeatBehavior for information about the string format you use to specify a RepeatBehavior value, either in script or in XAML. Creating a RepeatBehavior in XAML is possible only through a type conversion syntax, by setting a property that takes a RepeatBehavior value as an attribute string. Basically, a RepeatBehavior can be defined as an h:m:s string, an iterationsx string, or the special value "Forever".

The RepeatBehavior property applies both to specific animations and to the parent storyboard. For an animation in a storyboard, you should apply the RepeatBehavior to the storyboard; otherwise, the parent storyboard default of 1x will prevent child repeat behaviors from being applied. However, you might specify repeat behaviors on child animations if they are intended to run fewer seconds or iterations than the parent storyboard.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.