RibbonApplicationMenu.ShouldApplyItemContainerStyle 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,指示是否應將 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;否則為基礎實作回傳的值。