RibbonMenuItem.ClearContainerForItemOverride(DependencyObject, Object) Method

Definition

Entlädt den Container für das angegebene Element.Unloads the container for the specified item.

protected:
 override void ClearContainerForItemOverride(System::Windows::DependencyObject ^ element, System::Object ^ item);
protected override void ClearContainerForItemOverride (System.Windows.DependencyObject element, object item);
override this.ClearContainerForItemOverride : System.Windows.DependencyObject * obj -> unit
Protected Overrides Sub ClearContainerForItemOverride (element As DependencyObject, item As Object)

Parameters

element
DependencyObject

Das Element, das zum Anzeigen des Elements verwendet wird.The element that is used to display the item.

item
Object

Das Element, das aus der Items-Auflistung angezeigt werden soll.The item to display from the Items collection.

Remarks

Diese Methode macht die Auswirkungen der PrepareContainerForItemOverride-Methode unerledigt.This method undoes the effects of the PrepareContainerForItemOverride method.

Applies to