PropertyAnimation class

Applies to Windows only

Provides methods that enable you to retrieve animation property values that are common to all property animation types.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The PropertyAnimation class has these types of members:

Methods

The PropertyAnimation class inherits methods from the Object class (C#/VB/C++).

Properties

The PropertyAnimation class has these properties.

PropertyAccess typeDescription

Control1

Read-onlyGets the location of the first control point for the cubic Bézier curve that describes how this property of this object should animate over time.

Control2

Read-onlyGets the location of the second control point for the cubic Bézier curve that describes how this property of this object should animate over time.

Delay

Read-onlyGets the amount of time between when the animation is instructed to begin and when that animation actually begins to draw.

Duration

Read-onlyGets the amount of time over which the animation should be performed. This does not include the delay.

Type

Read-onlyGets the type of animation represented by this object.

 

Remarks

Obtain instances of this object through the AnimationDescription.animations property.

When a property animation is playing, that animation can be replaced by a different animation before the first animation is finished. The second animation can start from the same point at which the first animation leaves off. There is a slight delay between the time that the second animation is instructed to begin and when it does. In Windows 8, this can lead to a visible jump in the animation because the first animation has progressed slightly further during that delay. Starting in Windows 8.1, the starting point of the second animation is recalculated at the time it begins so no jump is seen.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.UI.Core.AnimationMetrics
Windows::UI::Core::AnimationMetrics [C++]

Metadata

Windows.winmd

See also

Animation metrics sample

 

 

Show:
© 2014 Microsoft