Storyboard.SkipToFill Method (FrameworkElement)

 

Advances the current time of this storyboard's Clock to the end of its active period.

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void SkipToFill(
	FrameworkElement containingObject
)

Parameters

containingObject
Type: System.Windows.FrameworkElement

The object specified when the Begin method was called. This object contains the Clock objects that were created for this storyboard and its children.

This method advances the storyboard's current time to the end of its active period; the storyboard's behavior at this point is specified by its FillBehavior setting. If FillBehavior is set to HoldEnd, the storyboard fills; if the property is set to Stop, the storyboard stops.

Calling this method on a storyboard with an infinite duration, an infinite number of repetitions has no effect. Calling this method on an inactive storyboard has no effect.

Advancing a clock to its fill period triggers the CurrentGlobalSpeedInvalidated and CurrentStateInvalidated events.

To interactively control this storyboard, you must use the same containingObject parameter when calling the interactive methods that you used to begin the storyboard. A controllable storyboard can pause, resume, seek, stop, and be removed. To make a storyboard controllable in code, you must use the appropriate overload of the storyboard's Begin method and specify true to make it controllable. For an example, see How to: Control a Storyboard After It Starts.

.NET Framework
Available since 3.0
Return to top
Show: