Compartilhar via


XRRepeatBehavior (Compact 2013)

3/28/2014

This structure defines how a timeline is repeated.

Syntax

struct XRRepeatBehavior{
  enum RepeatBehaviorType{
        RepeatBehaviorType_IterationCount,
        RepeatBehaviorType_RepeatDuration,
        RepeatBehaviorType_Forever
  };

  float IterationCount;
    XRTimeSpan RepeatDuration;
  RepeatBehaviorType BehaviorType;
};

Members

  • IterationCount
    Indicates how many times the timeline is repeated.
  • RepeatDuration
    Indicates how long the timeline is repeated.
  • BehaviorType
    Indicates the repeat behavior and which members are valid as described in the following table:

    Value

    Description

    RepeatBehaviorType_IterationCount

    The IterationCount value specifies the number of times a timeline plays. The default iteration count is 1.0.

    RepeatBehaviorType_RepeatDuration

    The RepeatDuration value specifies the duration of the timeline object as a multiple of the duration of playing the timeline one time.

    RepeatBehaviorType_Forever

    Indicates that the timeline repeats indefinitely.

Remarks

This structure is used in the IXRTimeline::GetRepeatBehavior and IXRTimeline::SetRepeatBehavior methods to specify how the timeline is repeated.

.NET Framework Equivalent

System.Windows.Media.Animation.RepeatBehavior

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Structures
IXRTimeline