共用方式為


RibbonApplicationMenu.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,否則為基底實作傳回的值。

適用於