CompositorExtensions.CreateQuaternionKeyFrameAnimation Method
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 a Windows.UI.Composition.QuaternionKeyFrameAnimation instance with the given parameters to on a target element.
public static Windows.UI.Composition.QuaternionKeyFrameAnimation CreateQuaternionKeyFrameAnimation (this Windows.UI.Composition.Compositor compositor, string? target, System.Numerics.Quaternion to, System.Numerics.Quaternion? from = default, TimeSpan? delay = default, TimeSpan? duration = default, Windows.UI.Composition.CompositionEasingFunction? easing = default, Windows.UI.Composition.AnimationDelayBehavior delayBehavior = Windows.UI.Composition.AnimationDelayBehavior.SetInitialValueBeforeDelay, Windows.UI.Composition.AnimationDirection direction = Windows.UI.Composition.AnimationDirection.Normal, Windows.UI.Composition.AnimationIterationBehavior iterationBehavior = Windows.UI.Composition.AnimationIterationBehavior.Count, int iterationCount = 1);
static member CreateQuaternionKeyFrameAnimation : Windows.UI.Composition.Compositor * string * System.Numerics.Quaternion * Nullable<System.Numerics.Quaternion> * Nullable<TimeSpan> * Nullable<TimeSpan> * Windows.UI.Composition.CompositionEasingFunction * Windows.UI.Composition.AnimationDelayBehavior * Windows.UI.Composition.AnimationDirection * Windows.UI.Composition.AnimationIterationBehavior * int -> Windows.UI.Composition.QuaternionKeyFrameAnimation
<Extension()>
Public Function CreateQuaternionKeyFrameAnimation (compositor As Compositor, target As String, to As Quaternion, Optional from As Nullable(Of Quaternion) = Nothing, Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional easing As CompositionEasingFunction = Nothing, Optional delayBehavior As AnimationDelayBehavior = Windows.UI.Composition.AnimationDelayBehavior.SetInitialValueBeforeDelay, Optional direction As AnimationDirection = Windows.UI.Composition.AnimationDirection.Normal, Optional iterationBehavior As AnimationIterationBehavior = Windows.UI.Composition.AnimationIterationBehavior.Count, Optional iterationCount As Integer = 1) As QuaternionKeyFrameAnimation
Parameters
- compositor
- Windows.UI.Composition.Compositor
The current Windows.UI.Composition.Compositor instance used to create the animation.
- target
- String
The optional target property to animate.
- to
- Quaternion
The final value for the animation.
- from
- Nullable<Quaternion>
The optional starting value for the animation.
- easing
- Windows.UI.Composition.CompositionEasingFunction
The optional easing function for the animation.
- delayBehavior
- Windows.UI.Composition.AnimationDelayBehavior
The delay behavior to use for the animation.
- direction
- Windows.UI.Composition.AnimationDirection
The direction to use when playing the animation.
- iterationBehavior
- Windows.UI.Composition.AnimationIterationBehavior
The iteration behavior to use for the animation.
- iterationCount
- Int32
The iteration count to use for the animation.
Returns
A Windows.UI.Composition.QuaternionKeyFrameAnimation instance with the specified parameters.