Freigeben über


Timeline.SpeedRatio Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the rate, relative to its parent, at which time progresses for this Timeline.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property SpeedRatio As Double
public double SpeedRatio { get; set; }
<timeline SpeedRatio="double"/>

Property Value

Type: 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.

Remarks

Dependency property identifier field: SpeedRatioProperty

A timeline's SpeedRatio setting does not have an effect on its BeginTime; that time is relative to the timeline's parent or, if the timeline is a root timeline, the moment at which the timeline's clock was begun.

Momentary or nonlinear apparent speed changes to animations can be accomplished using spline animations. For details, see Key-Frame Animations.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.