語言

RibbonApplicationMenu.ShouldApplyItemContainerStyle 方法

定義

回傳一個值,指示是否應將 or ItemContainerStyle 屬性的ItemContainerStyleSelector樣式套用到指定項目的容器元素。

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

容器是放的物品。

傳回

false 若 container 為 RibbonApplicationSplitMenuItem、 RibbonSeparator或 RibbonGallery;否則為基礎實作回傳的值。

適用於