Share via


XRFillBehavior (Compact 2013)

3/28/2014

This enumeration specifies how an IXRTimeline behaves when it is inactive but its parent is active or on hold.

Syntax

enum XRFillBehavior{
    XRFillBehavior_HoldEnd=0,
    XRFillBehavior_Stop=1,
};

Members

  • XRFillBehavior_HoldEnd
    After it reaches the end of its active period, the IXRTimeline holds its progress until the end of its parent's active or hold periods.
  • XRFillBehavior_Stop
    After it reaches the end of its active period, the IXRTimeline stops if its parent is active.

    The value of the animated property returns to its initial value.

Remarks

The XRFillBehavior property specifies how a timeline behaves when it ends. The default value for this property is XRFillBehavior_HoldEnd, which holds the animated object's final value after the animation ends. For example, if you animate the Opacity property of an IXRRectangle from 1 to 0 (zero) over 2 seconds, the default behavior is for the rectangle to remain at 0 (zero) opacity after 2 seconds elapse. If you set XRFillBehavior to XRFillBehavior_Stop, the opacity of the rectangle reverts to its original value of 1 after the animation ends.

To determine whether an IXRTimeline is active or on hold, use the IXRStoryboard::GetCurrentState method. The GetCurrentState method returns XRClockState_Active if the animation is active, or XRClockState_Filling if the animation is paused.

For more information about animation concepts, see Animation Overview on MSDN.

.NET Framework Equivalent

System.Windows.Media.Animation.FillBehavior

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRTimeline::GetFillBehavior
IXRTimeline::SetFillBehavior