IPropertyAnimationBuilder<T>.TimedKeyFrames Method

Definition

Overloads

TimedKeyFrames(Action<ITimedKeyFrameAnimationBuilder<T>>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on timed keyframes to the current schedule.

TimedKeyFrames<TState>(TState, Action<ITimedKeyFrameAnimationBuilder<T>, TState>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on timed keyframes to the current schedule.

TimedKeyFrames(Action<ITimedKeyFrameAnimationBuilder<T>>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on timed keyframes to the current schedule.

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

Parameters

build
Action<ITimedKeyFrameAnimationBuilder<T>>

The callback to use to construct the custom animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

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

TimedKeyFrames<TState>(TState, Action<ITimedKeyFrameAnimationBuilder<T>, TState>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>)

Adds a custom animation based on timed keyframes to the current schedule.

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

The callback to use to construct the custom animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

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