AnimationSet.SetDuration 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
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
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