RibbonMenuItem.ShouldApplyItemContainerStyle(DependencyObject, Object) Method

Definition

Devuelve un valor que indica si se debe aplicar el estilo de la propiedad ItemContainerStyle o ItemContainerStyleSelector al elemento contenedor del elemento especificado.Returns a value that indicates whether to apply the style from the ItemContainerStyle or ItemContainerStyleSelector property to the container element of the specified item.

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

Parameters

container
DependencyObject

Elemento contenedor.The container element.

item
Object

Elemento que se va a mostrar.The item to display.

Returns

Boolean

Es false si container es un objeto RibbonSeparator o RibbonGallery; de lo contrario, el valor devuelto por la implementación base.false if container is a RibbonSeparator or RibbonGallery; otherwise, the value returned by the base implementation.

Applies to