StatusBar.ShouldApplyItemContainerStyle(DependencyObject, Object) Methode

Definition

Bestimmt, ob das Style Element auf StatusBar ein Objekt angewendet werden soll.

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

Parameter

container
DependencyObject

Der Container für das Element.

item
Object

Das auszuwertende Objekt.

Gibt zurück

truewenn es item sich nicht um ein Separator; andernfalls handelt. false

Hinweise

Diese Methode stellt sicher, dass die Formatvorlage für ein Element in einem StatusBar Element nicht auf ein Separator Element angewendet wird.

Gilt für: