Storyboard.Remove Method (FrameworkContentElement)

Removes the clocks that were generated for this storyboard. Animations that belong to this storyboard will stop affecting the properties they once animated, regardless of their FillBehavior setting.

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

public void Remove (
	FrameworkContentElement containingObject
)
public void Remove (
	FrameworkContentElement containingObject
)
public function Remove (
	containingObject : FrameworkContentElement
)
You cannot use methods in XAML.

Parameters

containingObject

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

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 storyboard can be paused, resumed, seeked, stopped, and removed if it is made controllable. 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. See How to: Control a Storyboard After It Starts for an example.

Removing a storyboard's clock triggers the RemoveRequested event.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: