MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) Metoda

Definicja

Służy do określania, czy należy zastosować styl do kontenera elementów.

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

Parametry

container
DependencyObject

Kontener, do którego zostanie zastosowany styl.

item
Object

Element, do którego należy kontener.

Zwraca

Boolean

truejeśli parametr MenuItem nie jest ; Separatorw przeciwnym razie . false

Dotyczy