Selector.ClearContainerForItemOverride Method

July 28, 2014

Removes any bindings and templates applied to the item container for the specified content.

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

protected override void ClearContainerForItemOverride(
	DependencyObject element,
	Object item
)

Parameters

element
Type: System.Windows.DependencyObject
The combo box item used to display the specified content.
item
Type: System.Object
The item content.

This method removes styles, binding, and other item-specific effects that were applied to an item to prepare it to contain the specified content.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft