ComponentFactory.Krypton.Toolkit.PaletteOffice2007Black.GetRibbonBackColorStyle C# (CSharp) Method

GetRibbonBackColorStyle() public method

Gets the method used to draw the background of a ribbon item.
public GetRibbonBackColorStyle ( PaletteRibbonBackStyle style, PaletteState state ) : PaletteRibbonColorStyle
style PaletteRibbonBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return PaletteRibbonColorStyle
        public override PaletteRibbonColorStyle GetRibbonBackColorStyle(PaletteRibbonBackStyle style, PaletteState state)
        {
            switch (style)
            {
                case PaletteRibbonBackStyle.RibbonTab:
                    switch (state)
                    {
                        case PaletteState.Tracking:
                        case PaletteState.ContextTracking:
                            return PaletteRibbonColorStyle.RibbonTabGlowing;
                    }
                    break;
            }

            // Get style from the base class
            return base.GetRibbonBackColorStyle(style, state);
        }