MenuItem.ShouldApplyItemContainerStyle Method (DependencyObject, Object)

 
System_CAPS_noteNote

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

Used to determine whether to apply a style to the item container.

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

protected override bool ShouldApplyItemContainerStyle(
	DependencyObject container,
	object item
)

Parameters

container
Type: System.Windows.DependencyObject

Container to which the style will be applied.

item
Type: System.Object

Item to which the container belongs.

Return Value

Type: System.Boolean

true if the MenuItem is not a Separator; otherwise, false.

.NET Framework
Available since 3.0
Return to top
Show: