Percent Property
Collapse the table of content
Expand the table of content

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)

member Percent : float with get

Property Value

Type: System.Double

A Percent value.

Exception Condition
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
Available since 3.0
Return to top
Show:
© 2016 Microsoft