RibbonMenuButton.ShouldApplyItemContainerStyle Metoda

Definicja

Zwraca wartość wskazującą, czy należy zastosować styl z ItemContainerStyle właściwości lub ItemContainerStyleSelector do elementu kontenera określonego elementu.

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

Element kontenera.

item
Object

Element do wyświetlenia.

Zwraca

Boolean

false jeśli container jest wartością RibbonSeparator lub RibbonGallery; w przeciwnym razie wartość zwrócona przez implementację podstawową.

Dotyczy