IXRTimeline::GetFillBehavior (Compact 2013)

3/28/2014

This method retrieves a value that specifies how the animation behaves after it reaches the end of its active period.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetFillBehavior(
    XRFillBehavior* pFillBehavior
) = 0;

Parameters

  • pFillBehavior
    [out] Pointer to an XRFillBehavior enumerated value that specifies how the timeline behaves after it reaches the end of its active period, but its parent timeline is still within its active or fill period.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you want the animation to hold its value after it reaches the end of its active period, call IXRTimeline::SetFillBehavior and pass in XRFillBehavior_HoldEnd. When you do not want an animation to hold its value after it reaches the end of its active period, set its fill-behavior to XRFillBehavior_Stop.

A child timeline stops playing and filling when its parent timeline stops; if you want a child timeline to fill, make sure its parent timeline has a fill-behavior of XRFillBehavior_HoldEnd.
If you attempt to change the animated value coming from a filling animation in code, it will seem to have no effect until the filling animation is stopped.

.NET Framework Equivalent

System.Windows.Media.Animation.Timeline.FillBehavior

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTimeline
IXRTimeline::SetFillBehavior