RibbonMenuItem.ClearContainerForItemOverride Method
Unloads the container for the specified item.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub ClearContainerForItemOverride ( _
element As DependencyObject, _
item As Object _
)
protected override void ClearContainerForItemOverride(
DependencyObject element,
Object item
)
protected:
virtual void ClearContainerForItemOverride(
DependencyObject^ element,
Object^ item
) override
abstract ClearContainerForItemOverride :
element:DependencyObject *
item:Object -> unit
override ClearContainerForItemOverride :
element:DependencyObject *
item:Object -> unit
protected override function ClearContainerForItemOverride(
element : DependencyObject,
item : Object
)
Parameters
- element
Type: System.Windows.DependencyObject
The element that is used to display the item.
- item
Type: System.Object
The item to display from the Items collection.
Remarks
This method undoes the effects of the PrepareContainerForItemOverride method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.