Defines a segment of time.
Assembly: PresentationCore (in PresentationCore.dll)
Initializes a new instance of theclass.
Initializes a new instance of the BeginTime.class with the specified
|Timeline(Nullable(Of TimeSpan), Duration)|
|Timeline(Nullable(Of TimeSpan), Duration, RepeatBehavior)|
Gets or sets a value specifying the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate.
Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.
Gets or sets the time at which thisshould begin.
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets or sets a value specifying the percentage of the timeline's Duration spent decelerating the passage of time from its maximum rate to zero.
Gets or sets the length of time for which this timeline plays, not counting repetitions.
Gets or sets a value that specifies how thebehaves after it reaches the end of its active period.
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the name of this.
Gets or sets the repeating behavior of this timeline.
Gets or sets the rate, relative to its parent, at which time progresses for this.
Gets or sets the desired frame rate for this timeline and its child timelines.
Creates a Clock for this .
|ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)|
|BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)|
Creates a modifiable clone of this, making deep copies of this object's values.
Creates a modifiable clone of thisobject, making deep copies of this object's current values.
Creates a new, controllable Clock from this . If this has children, a tree of clocks is created with this as the root.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Makes this Animatable.FreezeCore(Boolean).)unmodifiable or determines whether it can be made unmodifiable.(Overrides
Makes this instance a clone of the specified Freezable.GetAsFrozenCore(Freezable).)object. (Overrides
Makes this instance a frozen clone of the specified Freezable.GetCurrentValueAsFrozenCore(Freezable).). Resource references, data bindings, and animations are not copied, but their current values are.(Overrides
Gets the desired frame rate of the specified.
Returns the length of a single iteration of this.
Returns the length of a single iteration of this GetNaturalDuration.. This method provides the implementation for
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
|OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)|
This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.(Inherited from Freezable.)
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
|SetDesiredFrameRate(Timeline, Nullable(Of Int32))|
Sets the desired frame rate of the specified.
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Returns a string that represents the current object.(Inherited from Object.)
Identifies the AccelerationRatio dependency property.
Identifies the AutoReverse dependency property.
Identifies the BeginTime dependency property.
Identifies for the DecelerationRatio dependency property.
Identifies the DesiredFrameRate attached property.
Identifies the Duration dependency property.
Identifies the FillBehavior dependency property.
Identifies the Name dependency property.
Identifies the RepeatBehavior dependency property.
Identifies for the SpeedRatio dependency property.
Occurs when this timeline has completely finished playing: it will no longer enter its active period.
Occurs when the rate at which time progresses for the timeline's clock changes.
Occurs when the clock created for this timeline or one of its parent timelines is removed.
A timeline represents a segment of time. It provides properties that enable you to specify the length of that segment, when it should start, how many times it will repeat, how fast time progresses in that segment, and more.
Classes that inherit from the timeline class provide additional functionality, such as animation and media playback. The following are examples of some of the different types of specialized timelines available.
Animations: An AnimationTimeline is a type of timeline that produces output values. When you associate an animation with a property, the animation updates the property's value as it plays, thereby "animating" it. For an introduction to animations, see Animation Overview. For information about the different ways to apply animations, see the Property Animation Techniques Overview.
MediaTimelines: A MediaTimeline is a type of timeline that controls the playback of a media file.
ParallelTimelines: A ParallelTimeline is a type of timeline that groups other timelines.
Storyboards: A Storyboard is a special type of ParallelTimeline that provides object and property targeting information for the timelines it contains. For more information about Storyboard objects, see the Storyboards Overview.
Most timeline properties can be data bound or animated; however, because of the way the timing system works, data bound or animated timelines do not behave like other data bound or animated objects. To understand their behavior, it helps to understand what it means to activate a timeline.
When a timeline is applied, copies are made of the timeline and its child timelines. These copies are frozen (made read-only) and Clock objects are created from them. It's these clocks that do the actual work of animating the targeted properties. If a timeline was data bound or animated, a snapshot of its current values was made when its clock was created. Even though the original timeline might continue to change, its clock does not.
For a timeline to reflect data binding or animation changes, its clock must be regenerated. Clocks are not regenerated for you automatically. The following are several ways to apply timeline changes:
If the timeline is or belongs to a Storyboard, you can make it reflect changes by reapplying its storyboard using a BeginStoryboard or the Begin method. This has the side effect of also restarting the animation. In code, you can use the Seek method to advance the storyboard back to its previous position.
If you are working directly at the clock level, create and apply a new set of clocks and use them to replace the previous set of generated clocks.
For an example of a data bound animation, see the Key Spline Animation Sample .
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.