MenuBase.IsItemItsOwnContainerOverride Method

Determines whether the specified item is, or is eligible to be, its own item container.

Namespace:  System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

Protected Overrides Function IsItemItsOwnContainerOverride ( _
	item As Object _
) As Boolean


Type: System.Object

The item to check whether it is an item container.

Return Value

Type: System.Boolean
true if the item is a MenuItem or a Separator; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft