Timeline


TimelineHierarchy: DependencyObject Freezable Animatable

         <Timeline             AccelerationRatio="1"             AutoReverse="true|false"             BeginTime="100"             CutOffTime="300"             FillBehavior="Deactivate|HoldEnd"             DecelerationRatio="1"             Duration="Automatic|Forever|100"             RepeatBehavior="IterationCount|RepeatDuration|Forever"             SpeedRatio="0.5" /> 

<Timeline .../> is an abstract element that represents a time period. Timeline makes use of the TimeSpan structure, which is represented textually as "d:h:s," where "d" is the number of days, "h" is the number of hours, and "s" is the number of seconds.

Attributes


AccelerationRatio (optional)

This Double value represents the percentage of the Duration spent accelerating from zero to its maximum rate. This attribute must be set to a value between 0 and 1, inclusive. The default value is 0.


AutoReverse (optional)

This Boolean value determines whether the timeline will play in reverse after it has completed a forward iteration.


true

The timeline will play in reverse at the end of each forward iteration.


false

The timeline will not play in reverse. This is the default value.


BeginTime (optional)

This TimeSpan attribute determines when the timeline will begin. The default value is 0.


CutOffTime (optional)

This TimeSpan attribute determines when the timeline should end, relative to BeginTime.


DecelerationRatio (optional)

This Double value represents the percentage of the Duration spent decelerating from its maximum rate to zero. This attribute must be set to a value between 0 and 1, inclusive. The default value is 0.


Duration (optional)

This attribute determines how long the timeline should continue, not counting repetitions.


Automatic

The timeline automatically ends when its last child stops playing.


Forever

The timeline will continue playing indefinitely.


TimeSpan

The value of this attribute is a time span.


FillBehavior (optional)

This value determines how the animation will behave once it has completed but while its parent is still active.


Deactivate

The Timeline is turned off when its parent is no longer active.


HoldEnd

The Timeline holds its progress until the end of its parent's active and hold periods.


RepeatBehavior (optional)

This attribute determines how the timeline will repeat its Duration, if at all.


Forever

The timeline will repeat indefinitely.


IterationCount

The timeline's behavior is determined by this value. A value of 1.0 means that the timeline will execute exactly once. A value of 2.0 means that the timeline will execute twice. A value of 0.5 means that the timeline will execute only half of its intended duration. An IterationCount is specified using the following syntax: RepeatBehavior="2x", where 2 is the desired iteration count and x is a keyword that indicates the type of RepeatBehavior being declared.


RepeatDuration

The timeline will repeat for the amount of time specified by this value. A RepeatDuration is specified by declaring the RepeatBehavior as a TimeSpan, e.g., "0:0:5" specifies a RepeatDuration time of five seconds.


SpeedRatio (optional)

This Double value specifies the rate of movement over the Duration. The default value is 1.0.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net