KeyTime.Percent Property

Gets the time when the key frame ends expressed as a percentage of the total duration of the animation.

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

public double Percent { get; }

Property Value

Type: System.Double
A Percent value.

ExceptionCondition
InvalidOperationException

If this instance is not of type Percent.

When a key time is expressed as a percentage, the key frame ending time is specified as a percentage of the duration of the key frame animation. For example, if a key frame animation has a duration of four seconds and 75% is given as the KeyTime percentage for the key frame, the key frame will end after the 3rd second.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft