RibbonApplicationMenu.ShouldApplyItemContainerStyle Metod

Definition

Returnerar ett värde som anger om formatmallen ItemContainerStyle från egenskapen eller ItemContainerStyleSelector ska tillämpas på containerelementet i det angivna objektet.

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

Parametrar

container
DependencyObject

Containerelementet.

item
Object

Det objekt som containern är till för.

Returer

false if container is a RibbonApplicationSplitMenuItem, RibbonSeparator, or RibbonGallery; other, the value returned by the base implementation.

Gäller för