MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) 方法

定义

用于确定是否对项容器应用样式。

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

参数

container
DependencyObject

将应用样式的容器。

item
Object

容器所属的项。

返回

Boolean

如果 MenuItem 不是 Separator,则为 true;否则为 false

适用于