Skip to main content
ScaleAnimation.Duration | duration property

Gets the amount of time over which the scale animation should be performed. This does not include the delay.

Syntax


var duration = scaleAnimation.duration;

public TimeSpan Duration { get; }

Public ReadOnly Property Duration As TimeSpan

public:
property TimeSpan Duration { 
   TimeSpan get();
}

Property value

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

The duration of the animation.

Remarks

The duration can be 0, in which case the object instantly jumps to its final size and no animation is shown.

Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0

API contract

Windows.UI.Core.Animationmetrics.AnimationmetricsContract, introduced version 1.0

Namespace

Windows.UI.Core.AnimationMetrics
Windows::UI::Core::AnimationMetrics [C++]

Metadata

Windows.UI.Core.Animationmetrics.AnimationmetricsContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Core.AnimationMetrics
Windows::UI::Core::AnimationMetrics [C++]

Metadata

Windows.winmd

See also

ScaleAnimation
Delay
Animation metrics sample