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);
}