AudioSwitcher.Presentation.UI.ToolStripNativeRenderer.GetBackgroundRectangle(System.Windows.Forms.ToolStripItem)

Here are the examples of the csharp api class AudioSwitcher.Presentation.UI.ToolStripNativeRenderer.GetBackgroundRectangle(System.Windows.Forms.ToolStripItem) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: audio-switcher
Source File: ToolStripNativeRenderer.cs
protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
        {
            if (EnsureRenderer())
            {
                int partID = e.Item.IsOnDropDown ? (int)MenuParts.PopupItem : (int)MenuParts.BarItem;

                _renderer.SetParameters(MenuClass, partID, GetItemState(e.Item));

                Rectangle bgRect = GetBackgroundRectangle(e.Item);
                _renderer.DrawBackground(e.Graphics, bgRect, bgRect);
            }
            else
            {
                base.OnRenderMenuItemBackground(e);
            }
        }

2. Example

Project: audio-switcher
Source File: ToolStripNativeRenderer.cs
protected override void OnRenderItemCheck(ToolStripItemImageRenderEventArgs e)
        {
           /n ..... /n //View Source file for more details /n }