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)

override ShouldApplyItemContainerStyle : 
        container:DependencyObject *
        item:Object -> bool

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: