Breyta

Deila með


MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) Method

Definition

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

protected:
 override bool ShouldApplyItemContainerStyle(System::Windows::DependencyObject ^ container, System::Object ^ item);
protected override bool ShouldApplyItemContainerStyle (System.Windows.DependencyObject container, object item);
override this.ShouldApplyItemContainerStyle : System.Windows.DependencyObject * obj -> bool
Protected Overrides Function ShouldApplyItemContainerStyle (container As DependencyObject, item As Object) As Boolean

Parameters

container
DependencyObject

Container to which the style will be applied.

item
Object

Item to which the container belongs.

Returns

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

Applies to