Vector2KeyFrameAnimation
Vector2KeyFrameAnimation
Vector2KeyFrameAnimation
Vector2KeyFrameAnimation
Class
Definition
A time-based animation that targets any Vector2-based property with one or more key frames.
public : sealed class Vector2KeyFrameAnimation : KeyFrameAnimation, IVector2KeyFrameAnimationpublic sealed class Vector2KeyFrameAnimation : KeyFrameAnimation, IVector2KeyFrameAnimationPublic NotInheritable Class Vector2KeyFrameAnimation Inherits KeyFrameAnimation Implements IVector2KeyFrameAnimation// This API is not available in Javascript.
- Inheritance
-
Vector2KeyFrameAnimationVector2KeyFrameAnimationVector2KeyFrameAnimationVector2KeyFrameAnimation
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
Use the CompostionObject.StartAnimation and CompostionObject.StopAnimation methods to start and stop the animation.
An animation is associated with an object's property by calling CompositionObject::StartAnimation and specifying the property name and the animation. See the remarks section of CompositionObject::StartAnimation for a list of animatable properties.
Methods
InsertKeyFrame(Single, Vector2) InsertKeyFrame(Single, Vector2) InsertKeyFrame(Single, Vector2) InsertKeyFrame(Single, Vector2)
Inserts a key frame.
public : void InsertKeyFrame(float normalizedProgressKey, Vector2 value)public void InsertKeyFrame(Single normalizedProgressKey, Vector2 value)Public Function InsertKeyFrame(normalizedProgressKey As Single, value As Vector2) As void// This API is not available in Javascript.
- normalizedProgressKey
- float Single Single Single
The time the key frame should occur at, expressed as a percentage of the animation Duration. Allowed value is from 0.0 to 1.0.
- value
- Vector2 Vector2 Vector2 Vector2
The value of the key frame.
- See Also
InsertKeyFrame(Single, Vector2, CompositionEasingFunction) InsertKeyFrame(Single, Vector2, CompositionEasingFunction) InsertKeyFrame(Single, Vector2, CompositionEasingFunction) InsertKeyFrame(Single, Vector2, CompositionEasingFunction)
Inserts a keyframe with the specified easing function.
public : void InsertKeyFrame(float normalizedProgressKey, Vector2 value, CompositionEasingFunction easingFunction)public void InsertKeyFrame(Single normalizedProgressKey, Vector2 value, CompositionEasingFunction easingFunction)Public Function InsertKeyFrame(normalizedProgressKey As Single, value As Vector2, easingFunction As CompositionEasingFunction) As void// This API is not available in Javascript.
- normalizedProgressKey
- float Single Single Single
The time the key frame should occur at, expressed as a percentage of the animation Duration. Allowed value is from 0.0 to 1.0.
- value
- Vector2 Vector2 Vector2 Vector2
The value of the key frame.
- easingFunction
- CompositionEasingFunction CompositionEasingFunction CompositionEasingFunction CompositionEasingFunction
The easing function to use when interpolating between frames.
- See Also