MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用來判斷是否要套用某個風格到物品容器。
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
容器所屬的物品。
傳回
true若 不是 MenuItemSeparator;否則,。 false