AnimationBuilder.Opacity Method

Definition

Overloads

Opacity(FrameworkLayer)

Adds a new opacity animation to the current schedule.

Opacity(Double, Nullable<Double>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new opacity animation to the current schedule.

Opacity(FrameworkLayer)

Adds a new opacity animation to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<double> Opacity (Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition);
member this.Opacity : Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<double>
Public Function Opacity (Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As IPropertyAnimationBuilder(Of Double)

Parameters

layer
FrameworkLayer

The target framework layer to animate.

Returns

An IPropertyAnimationBuilder<T> instance to configure the animation.

Applies to

Opacity(Double, Nullable<Double>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new opacity animation to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder Opacity (double to, double? from = default, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, 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.EaseInOut, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition);
member this.Opacity : double * Nullable<double> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode * Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function Opacity (to As Double, Optional from As Nullable(Of Double) = Nothing, Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As AnimationBuilder

Parameters

to
Double

The final value for the animation.

from
Nullable<Double>

The optional starting value for the animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The optional animation duration.

repeat
Nullable<RepeatOption>

The optional repeat mode (defaults to once).

easingType
EasingType

The optional easing function type for the animation.

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

The optional easing function mode for the animation.

layer
FrameworkLayer

The target framework layer to animate.

Returns

The current AnimationBuilder instance.

Applies to