RibbonMenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) 方法

定义

返回一个值,该值表示是否将属性 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

false 如果 containerRibbonSeparatorRibbonGallery; 否则,通过基实现返回值。

适用于