ShouldApplyItemContainerStyle Method

MenuItem.ShouldApplyItemContainerStyle Method (DependencyObject, Object)

 

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:
© 2016 Microsoft