Skip to main content
AnimationDescription.AnimationDescription constructor

Applies to Windows only

Creates an AnimationDescription object with a specific animation and target.

Syntax


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

public AnimationDescription(
  AnimationEffect effect, 
  AnimationEffectTarget target
)

Public Sub New (
  effect As AnimationEffect,  
  target As AnimationEffectTarget 
)

public:
AnimationDescription(
  AnimationEffect effect, 
  AnimationEffectTarget 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

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