AnimationExtensions.Fade Method

Definition

Overloads

Fade(AnimationSet, Single, Double, Double, EasingType, EasingMode)

Animates the opacity of the UIElement.

Fade(UIElement, Single, Double, Double, EasingType, EasingMode)

Animates the opacity of the UIElement.

Fade(AnimationSet, Single, Double, Double, EasingType, EasingMode)

Animates the opacity of the UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Fade (this Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet animationSet, float value = 0, double duration = 500, double delay = 0, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut);
static member Fade : Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Fade (animationSet As AnimationSet, Optional value As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet

Parameters

animationSet
AnimationSet

The animation set.

value
Single

The fade value, between 0 and 1.

duration
Double

The duration in milliseconds.

delay
Double

The delay. (ignored if duration == 0)

easingType
EasingType

Used to describe how the animation interpolates between keyframes.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The EasingMode to use to interpolate between keyframes.

Returns

An AnimationSet.

Applies to

Fade(UIElement, Single, Double, Double, EasingType, EasingMode)

Animates the opacity of the UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Fade (this Windows.UI.Xaml.UIElement associatedObject, float value = 0, double duration = 500, double delay = 0, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut);
static member Fade : Windows.UI.Xaml.UIElement * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Fade (associatedObject As UIElement, Optional value As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet

Parameters

associatedObject
Windows.UI.Xaml.UIElement

The UI Element to change the opacity of.

value
Single

The fade value, between 0 and 1.

duration
Double

The duration in milliseconds.

delay
Double

The delay. (ignored if duration == 0)

easingType
EasingType

Used to describe how the animation interpolates between keyframes.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The easing mode to use to interpolate between keyframes.

Returns

An AnimationSet.

Applies to