言語

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

コンテナーが属する項目。

返品

true MenuItemSeparatorでない場合はfalse

適用対象