RibbonApplicationMenuItem.ShouldApplyItemContainerStyle 方法

定义

返回一个值,该值表示是否将属性 ItemContainerStyleItemContainerStyleSelector 的样式应用到指定的项的容器元素。

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

如果 containerRibbonApplicationSplitMenuItemRibbonSeparatorRibbonGallery,则为 false;否则为基实现返回的值。

适用于