MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) MenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) Method

Definición

Se utiliza para determinar si se aplica un estilo al contenedor de elementos.Used to determine whether to apply a style to the item container.

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

Parámetros

container
DependencyObject DependencyObject DependencyObject DependencyObject

Contenedor al que se aplicará el estilo.Container to which the style will be applied.

item
Object Object Object Object

Elemento al que pertenece el contenedor.Item to which the container belongs.

Devoluciones

true si MenuItem no es un Separator; de lo contrario, false.true if the MenuItem is not a Separator; otherwise, false.

Se aplica a