Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AnimationDescription.AnimationDescription constructor

Creates an AnimationDescription object with a specific animation and target.

Syntax


var animationDescription = new Windows.UI.Core.AnimationMetrics.AnimationDescription(effect, target);

Parameters

effect

Type: AnimationEffect

The animation effect to apply to the target.

target

Type: AnimationEffectTarget

The target of the animation effect.

Remarks

It is important to note that not all targets are valid for all animation effects. If an effect does not support the specified target, the method will fail.

The properties of an AnimationDescription object are captured at the time this method is called. If the user changes the animation settings, the originally captured values will continue to be returned by any AnimationDescription objects created before the change. To ensure that the properties you retrieve through methods of this class match the currently active settings, call this method to construct the object immediately before use.

Because all properties of the AnimationDescription object are captured at the time of construction, the object itself is immutable and can be marshaled freely.

Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0

API contract

Windows.UI.Core.Animationmetrics.AnimationmetricsContract, introduced version 1.0

Namespace

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

Metadata

Windows.UI.Core.Animationmetrics.AnimationmetricsContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

AnimationDescription
Animation metrics sample

 

 

Show: