Aracılığıyla paylaş


MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) Yöntem

Tanım

Öğe kapsayıcısına stil uygulanıp uygulanmayacağını belirlemek için kullanılır.

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

Parametreler

container
DependencyObject

Stilin uygulanacağı kapsayıcı.

item
Object

Kapsayıcının ait olduğu öğe.

Döndürülenler

Boolean

trueMenuItem Separatordeğilse; değilse, false.

Şunlara uygulanır