Show / Hide Table of Contents

Class Timeline

Defines a segment of time.

Inheritance
System.Object
DependencyObject
Timeline
AnimationTimeline
Storyboard
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public abstract class Timeline : DependencyObject, IDependencyObject

Constructors

| Improve this Doc View Source

Timeline()

Initializes a new instance of the Timeline class.

Declaration
protected Timeline()

Fields

| Improve this Doc View Source

AutoReverseProperty

Identifies the AutoReverse dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty AutoReverseProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

BeginTimeProperty

Identifies the BeginTime dependency property.

Declaration
public static readonly DependencyProperty BeginTimeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DurationProperty

Identifies the Duration dependency property.

Declaration
public static readonly DependencyProperty DurationProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FillBehaviorProperty

Identifies the FillBehavior dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty FillBehaviorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

RepeatBehaviorProperty

Identifies the RepeatBehavior dependency property.

Declaration
public static readonly DependencyProperty RepeatBehaviorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

SpeedRatioProperty

Identifies for the SpeedRatio dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty SpeedRatioProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

AutoReverse

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

GetNaturalDurationCore()

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 Source

Completed

Occurs when the Storyboard object has completed playing.

Declaration
public event EventHandler Completed
Event Type
Type Description
System.EventHandler

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source