Class Timeline
Defines a segment of time.
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public abstract class Timeline : DependencyObject, IDependencyObject
Constructors
| Improve this Doc View SourceTimeline()
Initializes a new instance of the Timeline class.
Declaration
protected Timeline()
Fields
| Improve this Doc View SourceAutoReverseProperty
Identifies the AutoReverse dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty AutoReverseProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
BeginTimeProperty
Identifies the BeginTime dependency property.
Declaration
public static readonly DependencyProperty BeginTimeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DurationProperty
Identifies the Duration dependency property.
Declaration
public static readonly DependencyProperty DurationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FillBehaviorProperty
Identifies the FillBehavior dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty FillBehaviorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RepeatBehaviorProperty
Identifies the RepeatBehavior dependency property.
Declaration
public static readonly DependencyProperty RepeatBehaviorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SpeedRatioProperty
Identifies for the SpeedRatio dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty SpeedRatioProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceAutoReverse
Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.
Declaration
[NotImplemented]
public bool AutoReverse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the timeline plays in reverse at the end of each iteration; otherwise, false. The default value is false. |
BeginTime
Gets or sets the time at which this Timeline should begin.
Declaration
public TimeSpan? BeginTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> | The start time of the time line. The default value is zero. |
Duration
Gets or sets the length of time for which this timeline plays, not counting repetitions.
Declaration
public Duration Duration { get; set; }
Property Value
Type | Description |
---|---|
Duration | The timeline's simple duration: the amount of time this timeline takes to complete a single forward iteration. The default value is Automatic. |
FillBehavior
Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period.
Declaration
[NotImplemented]
public FillBehavior FillBehavior { get; set; }
Property Value
Type | Description |
---|---|
FillBehavior | A value that specifies how the timeline behaves after it reaches the end of its active period but its parent is inside its active or fill period. The default value is HoldEnd. |
RepeatBehavior
Gets or sets the repeating behavior of this timeline.
Declaration
public RepeatBehavior RepeatBehavior { get; set; }
Property Value
Type | Description |
---|---|
RepeatBehavior | An iteration Count that specifies the number of times the timeline should play, a System.TimeSpan value that specifies the total length of this timeline's active period, or the special value Forever, which specifies that the timeline should repeat indefinitely. The default value is a RepeatBehavior with a Count of 1, which indicates that the timeline plays once. |
SpeedRatio
Gets or sets the rate, relative to its parent, at which time progresses for this Timeline.
Declaration
[NotImplemented]
public double SpeedRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A finite value greater than 0 that specifies the rate at which time progresses for this timeline, relative to the speed of the timeline's parent. If this timeline is a root timeline, specifies the default timeline speed. The value is expressed as a factor where 1 represents normal speed, 2 is double speed, 0.5 is half speed, and so on. The default value is 1. |
Methods
| Improve this Doc View SourceGetNaturalDurationCore()
Implemented by the class author to provide a custom natural Duration in the case that the Duration property is set to Automatic. If the author cannot determine the Duration, this method should return Automatic.
Declaration
protected virtual Duration GetNaturalDurationCore()
Returns
Type | Description |
---|---|
Duration | A Duration quantity representing the natural duration. |
Events
| Improve this Doc View SourceCompleted
Occurs when the Storyboard object has completed playing.
Declaration
public event EventHandler Completed
Event Type
Type | Description |
---|---|
System.EventHandler |