Microsoft.Windows.Controls.Ribbon.RibbonMenuButton.ShouldApplyItemContainerStyle C# (CSharp) Метод

ShouldApplyItemContainerStyle() защищенный Метод

protected ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool
container System.Windows.DependencyObject
item object
Результат bool
        protected override bool ShouldApplyItemContainerStyle(DependencyObject container, object item)
        {
            if (container is RibbonSeparator ||
                container is RibbonGallery)
            {
                return false;
            }
            else
            {
                return base.ShouldApplyItemContainerStyle(container, item);
            }
        }