MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) メソッド

定義

項目のコンテナーにスタイルを適用するかどうかを決定するために使用されます。

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

MenuItemSeparator ではない場合は true。それ以外の場合は false

適用対象