AnimationBuilder.NormalizedKeyFrames 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.
Overloads
NormalizedKeyFrames<T,TState>(String, TState, Action<INormalizedKeyFrameAnimationBuilder<T>, TState>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>, FrameworkLayer) |
Adds a custom animation based on normalized keyframes to the current schedule. |
NormalizedKeyFrames<T>(String, Action<INormalizedKeyFrameAnimationBuilder<T>>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>, FrameworkLayer) |
Adds a custom animation based on normalized keyframes to the current schedule. |
NormalizedKeyFrames<T,TState>(String, TState, Action<INormalizedKeyFrameAnimationBuilder<T>, TState>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>, FrameworkLayer)
Adds a custom animation based on normalized keyframes to the current schedule.
public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder NormalizedKeyFrames<T,TState> (string property, TState state, Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<T>,TState> build, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeatOption = default, Windows.UI.Composition.AnimationDelayBehavior? delayBehavior = default, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) where T : struct;
member this.NormalizedKeyFrames : string * '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.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder (requires 'T : struct)
Public Function NormalizedKeyFrames(Of T As Structure, TState As Structure) (property As String, state As TState, build As Action(Of INormalizedKeyFrameAnimationBuilder(Of T), TState), Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeatOption As Nullable(Of RepeatOption) = Nothing, Optional delayBehavior As Nullable(Of AnimationDelayBehavior) = Nothing, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As AnimationBuilder
Type Parameters
- T
The type of values to animate.
- TState
The type of state to pass to the builder.
Parameters
- property
- String
The target property to animate.
- state
- TState
The state to pass to the builder.
- build
- Action<INormalizedKeyFrameAnimationBuilder<T>,TState>
The callback to use to construct the custom animation.
- repeatOption
- 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 layer
is Xaml).
- layer
- FrameworkLayer
The target framework layer to animate.
Returns
The current AnimationBuilder instance.
Applies to
NormalizedKeyFrames<T>(String, Action<INormalizedKeyFrameAnimationBuilder<T>>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, Nullable<AnimationDelayBehavior>, FrameworkLayer)
Adds a custom animation based on normalized keyframes to the current schedule.
public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder NormalizedKeyFrames<T> (string property, Action<Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<T>> build, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeatOption = default, Windows.UI.Composition.AnimationDelayBehavior? delayBehavior = default, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) where T : struct;
member this.NormalizedKeyFrames : string * 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.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder (requires 'T : struct)
Public Function NormalizedKeyFrames(Of T As Structure) (property As String, build As Action(Of INormalizedKeyFrameAnimationBuilder(Of T)), Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeatOption As Nullable(Of RepeatOption) = Nothing, Optional delayBehavior As Nullable(Of AnimationDelayBehavior) = Nothing, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As AnimationBuilder
Type Parameters
- T
The type of values to animate.
Parameters
- property
- String
The target property to animate.
- build
- Action<INormalizedKeyFrameAnimationBuilder<T>>
The callback to use to construct the custom animation.
- repeatOption
- 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 layer
is Xaml).
- layer
- FrameworkLayer
The target framework layer to animate.
Returns
The current AnimationBuilder instance.