Represents the duration of time that a Timeline is active.
| XAML | <object property="durationString" .../> |
| Scripting | object.property="durationString" |
durationString Grammar
| Type | Grammar | Example | Example result |
| Time span | [days.]hours:minutes:seconds[.fractionalSeconds] | "0:0:15" | Start to end is 15 seconds. |
| Literal "Automatic" | Automatic | "Automatic" | See Remarks. |
| Literal "Forever" | Forever | "Forever" | See Remarks. |
- In the grammar above, [] indicates optional values, the [] are not literals. The : (colon) and . (period) characters are both literals.
- Values for hours can be any integer value between 0 and 23 inclusive. Values for minutes and seconds can be any integer value between 0 and 59 inclusive. The value for days can be very large, but does have an unspecified upper bound. The decimal value for fractionalSeconds (with the decimal point included) must be between 0 and 1.
- Automatic and Forever are literal strings that hold special meaning for a Duration. See Animation Overview.
See Also
Animation Overview