ClearContainerForItemOverride Method

Selector.ClearContainerForItemOverride Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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


Type: System.Windows.DependencyObject
The combo box item used to display the specified content.
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

© 2017 Microsoft