Edit

Share via


AnimationSet.SetDuration Method

Definition

Overloads

SetDuration(TimeSpan)

Overwrites the duration on all animations after last Then() to the specified value

SetDuration(Double)

Overwrites the duration on all animations after last Then() to the specified value

SetDuration(TimeSpan)

Overwrites the duration on all animations after last Then() to the specified value

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet SetDuration (TimeSpan duration);
member this.SetDuration : TimeSpan -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
Public Function SetDuration (duration As TimeSpan) As AnimationSet

Parameters

duration
TimeSpan

TimeSpan for the duration

Returns

AnimationSet to allow chaining

Applies to

SetDuration(Double)

Overwrites the duration on all animations after last Then() to the specified value

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet SetDuration (double duration);
member this.SetDuration : double -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
Public Function SetDuration (duration As Double) As AnimationSet

Parameters

duration
Double

The duration in milliseconds

Returns

AnimationSet to allow chaining

Applies to