Export (0) Print
Expand All

ItemsControl.ClearContainerForItemOverride Method

Undoes the effects of the PrepareContainerForItemOverride method.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

protected virtual void ClearContainerForItemOverride(
	DependencyObject element,
	Object item
)

Parameters

element
Type: System.Windows.DependencyObject
The container element.
item
Type: System.Object
The item.

A class that inherits from ItemsControl can override this method to undo one or more of the actions that it takes in the PrepareContainerForItemOverride method. If you override ClearContainerForItemOverride, always call the base implementation in your ClearContainerForItemOverride implementation.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft