RepeatBehavior.Duration property

Applies to Windows and Windows Phone

Gets or sets the total length of time that a Timeline should play.

C++/CX:  Duration doesn't have a set accessor in C++/CX, it is read-only. The syntax below is wrong.

Syntax


public TimeSpan Duration { get; set; }

Property value

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

The total length of time that a Timeline should play.

Remarks

Check the HasDuration property first to verify that the RepeatBehavior represents a repeat duration.

In Microsoft .NET you can use utility API of System.TimeSpan to examine the value, such as TimeSpan.Seconds. In C++/CX the Duration field of a TimeSpan is an int64 value representing 100-nanosecond units.

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.Media.Animation
Windows::UI::Xaml::Media::Animation [C++]

Metadata

Platform.winmd

Assembly

System.Runtime.WindowsRuntime.UI.Xaml.dll

See also

RepeatBehavior

 

 

Show:
© 2014 Microsoft