MenuBase.IsItemItsOwnContainerOverride Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 override bool IsItemItsOwnContainerOverride(
	object item


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
Available since 3.0
Return to top