Edit

Share via


ShadowAnimation<TValue,TKeyFrame> Class

Definition

A custom animation targeting a property on an IAttachedShadow instance.

public abstract class ShadowAnimation<TValue,TKeyFrame> : Microsoft.Toolkit.Uwp.UI.Animations.Animation<TValue,TKeyFrame>, Microsoft.Toolkit.Uwp.UI.Animations.IAttachedTimeline where TKeyFrame : struct
type ShadowAnimation<'Value, 'KeyFrame (requires 'KeyFrame : struct)> = class
    inherit Animation<'Value, 'KeyFrame (requires 'KeyFrame : struct)>
    interface IAttachedTimeline
Public MustInherit Class ShadowAnimation(Of TValue, TKeyFrame)
Inherits Animation(Of TValue, TKeyFrame)
Implements IAttachedTimeline

Type Parameters

TValue

The type to use for the public To and From properties. This can differ from TKeyFrame to facilitate XAML parsing.

TKeyFrame

The actual type of keyframe values in use.

Inheritance
Windows.UI.Xaml.DependencyObject
ShadowAnimation<TValue,TKeyFrame>
Derived
Implements

Constructors

ShadowAnimation<TValue,TKeyFrame>()

Fields

TargetProperty

Identifies the dependency property.

Properties

Delay

Gets or sets the optional initial delay for the animation.

(Inherited from Animation)
DelayBehavior

Gets or sets the delay behavior for the animation. The default value is set to Windows.UI.Composition.AnimationDelayBehavior.SetInitialValueBeforeDelay. This value is applicable when the current animation is used as either an implicit composition animation, or an explicit composition animation. If the current animation is instead running on the XAML layer (if used through CustomAnimation<TValue,TKeyFrame>), it will be ignored.

(Inherited from Animation)
Duration

Gets or sets the animation duration.

(Inherited from Animation)
EasingMode

Gets or sets the optional easing function mode for the animation.

(Inherited from Animation)
EasingType

Gets or sets the optional easing function type for the animation.

(Inherited from Animation)
ExplicitTarget

Gets the explicit target for the animation. This is the primary target property that is animated.

(Inherited from Animation<TValue,TKeyFrame>)
From

Gets or sets the optional starting value for the animation.

(Inherited from Animation<TValue,TKeyFrame>)
KeyFrames

Gets or sets the optional keyframe collection for the current animation. Setting this will overwrite the To and From values.

(Inherited from Animation<TValue,TKeyFrame>)
Repeat

Gets or sets the repeat option for the animation.

(Inherited from Animation)
Target

Gets or sets the linked IAttachedShadow instance to animate.

To

Gets or sets the final value for the animation.

(Inherited from Animation<TValue,TKeyFrame>)

Methods

AppendToBuilder(AnimationBuilder, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<EasingType>, Nullable<EasingMode>)
AppendToBuilder(AnimationBuilder, UIElement, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<EasingType>, Nullable<EasingMode>)

Appends the current animation to a target AnimationBuilder instance. This method is used when the current ITimeline instance is explicitly triggered.

AppendToBuilder(INormalizedKeyFrameAnimationBuilder<TKeyFrame>, Nullable<EasingType>, Nullable<EasingMode>)

Appends the current keyframe values to a target INormalizedKeyFrameAnimationBuilder<T> instance. This method will also automatically generate keyframes for To and From.

(Inherited from Animation<TValue,TKeyFrame>)
GetParsedValues()

Gets the parsed TKeyFrame values from Animation<TValue,TKeyFrame>.

(Inherited from Animation<TValue,TKeyFrame>)

Applies to