Edit

Share via


IPropertyAnimationBuilder<T>.NormalizedKeyFrames Method

Definition

Overloads

NormalizedKeyFrames(Action<INormalizedKeyFrameAnimationBuilder<T>>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on normalized keyframes ot the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder NormalizedKeyFrames(Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<in T>> build, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, Windows.UI.Composition.AnimationDelayBehavior? delayBehavior = default);
abstract member NormalizedKeyFrames : Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<'T>> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Nullable<Windows.UI.Composition.AnimationDelayBehavior> -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function NormalizedKeyFrames (build As Action(Of INormalizedKeyFrameAnimationBuilder(Of In T)), Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional delayBehavior As Nullable(Of AnimationDelayBehavior) = Nothing) As AnimationBuilder

Parameters

build
Action<INormalizedKeyFrameAnimationBuilder<T>>

The callback to use to construct the custom animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The animation duration.

repeat
Nullable<RepeatOption>

The repeat option for the animation (defaults to one iteration).

delayBehavior
Nullable<Windows.UI.Composition.AnimationDelayBehavior>

The delay behavior to use (ignored if the animation is not being executed on the composition layer).

Returns

The current AnimationBuilder instance.

Applies to

NormalizedKeyFrames<TState>(TState, Action<INormalizedKeyFrameAnimationBuilder<T>, TState>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on normalized keyframes ot the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder NormalizedKeyFrames<TState>(TState state, Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<in T>,TState> build, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, Windows.UI.Composition.AnimationDelayBehavior? delayBehavior = default);
abstract member NormalizedKeyFrames : 'State * Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<'T>, 'State> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Nullable<Windows.UI.Composition.AnimationDelayBehavior> -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function NormalizedKeyFrames(Of TState) (state As TState, build As Action(Of INormalizedKeyFrameAnimationBuilder(Of In T), TState), Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional delayBehavior As Nullable(Of AnimationDelayBehavior) = Nothing) As AnimationBuilder

Type Parameters

TState

The type of state to pass to the builder.

Parameters

state
TState

The state to pass to the builder.

build
Action<INormalizedKeyFrameAnimationBuilder<T>,TState>

The callback to use to construct the custom animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The animation duration.

repeat
Nullable<RepeatOption>

The repeat option for the animation (defaults to one iteration).

delayBehavior
Nullable<Windows.UI.Composition.AnimationDelayBehavior>

The delay behavior to use (ignored if the animation is not being executed on the composition layer).

Returns

The current AnimationBuilder instance.

Applies to