次の方法で共有


IXRTimeline::GetFillBehavior (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTimeline
IXRTimeline::SetFillBehavior