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 Overrides Sub ClearContainerForItemOverride ( _
    element As DependencyObject, _
    item As Object _
protected override void ClearContainerForItemOverride(
    DependencyObject element,
    Object item



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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


Selector Class

System.Windows.Controls.Primitives Namespace