DurationType enumeration

Applies to Windows and Windows Phone

Declares whether a Duration has a special value of Automatic or Forever, or has valid information in its TimeSpan component.

Syntax


public enum DurationType

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The DurationType enumeration has these members.

MemberValueDescription
Automatic0

Has the Automatic special value.

TimeSpan1

Has valid information in the TimeSpan component.

Forever2

Has the Forever special value.

Remarks

This value is used by the Duration.Type field, when you use C++ code and access the field data for a Duration.

For a Duration the Automatic and Forever values have different meaning depending on whether the Duration is being used for the Duration property on a Storyboard rather than on an individual storyboarded animation. For more info, see Storyboarded animations.

For C# and Microsoft Visual Basic there is no Type property but you can use HasTimeSpan to get similar information.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Storyboarded animations
Duration

 

 

Show:
© 2014 Microsoft