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 ReadOnly Property Percent As Double

Property Value

Type: System.Double

A Percent value.

Exception Condition

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
Available since 3.0
Return to top