AnimationDescription(AnimationEffect, AnimationEffectTarget) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an AnimationDescription object with a specific animation and target.
public:
AnimationDescription(AnimationEffect effect, AnimationEffectTarget target);
AnimationDescription(AnimationEffect const& effect, AnimationEffectTarget const& target);
public AnimationDescription(AnimationEffect effect, AnimationEffectTarget target);
function AnimationDescription(effect, target)
Public Sub New (effect As AnimationEffect, target As AnimationEffectTarget)
Parameters
- effect
- AnimationEffect
The animation effect to apply to the target.
- target
- 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.