예제 #1
0
        private void RenderPanel(Graphics g, RibbonThemaSettingsBase settings, Rectangle itemBounds)
        {
            switch (this.dropDownOpening ? VisualState.Pressed : this.PanelVisualState)
            {
            case VisualState.Hot:
            {
                settings.DrawHotButtonPanel(g, GetHotBoundsForRender(itemBounds), (double)2 / 5);
            }
            break;

            case VisualState.Pressed:
            {
                settings.DrawPressedButtonPanel(g, GetHotBoundsForRender(itemBounds), (double)2.25 / 5);
            }
            break;
            }
        }
예제 #2
0
        private void RenderPanel(Graphics g, RibbonThemaSettingsBase settings, Rectangle itemBounds)
        {
            switch (this.dropDownOpening ? RibbonElementState.Pressed : this.State)
            {
            case RibbonElementState.Hot:
            {
                settings.DrawHotButtonPanel(g, itemBounds, (double)2 / 5);
            }
            break;

            case RibbonElementState.Pressed:
            case RibbonElementState.Selected:
            {
                settings.DrawPressedButtonPanel(g, itemBounds, (double)2.25 / 5);
            }
            break;

            default:
                return;
            }
        }