RibbonContextMenu.ClearContainerForItemOverride(DependencyObject, Object) 方法

定义

为指定项卸载容器。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)

参数

element
DependencyObject

用于显示项的元素。The element that is used to display the item.

item
Object

要从 Items 集合中显示的项。The item to display from the Items collection.

注解

此方法撤消PrepareContainerForItemOverride方法的效果。This method undoes the effects of the PrepareContainerForItemOverride method.

适用于