共用方式為


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

如果 containerRibbonSeparatorRibbonGallery 則為 false;否則,則為基底實作傳回的值。

適用於