Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TranslationAnimation.Duration | duration property

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

Syntax


var duration = translationAnimation.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 position and no animation is shown.

Requirements (Windows 10 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 (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

TranslationAnimation
Delay
Animation metrics sample

 

 

Show:
© 2015 Microsoft