Windows Dev Center

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;

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 (device family)

Device family

Desktop

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 (operating system)

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

 

 

Show:
© 2015 Microsoft