In This Article

MetroBarRenderer Class

Provides a base renderer for bar controls that have a Metro appearance.

public class MetroBarRenderer : WindowsClassicBarRenderer, IDisposable, IBarRenderer, IUIRenderer
Inheritance:
object MarshalByRefObject DisposableObject UIRenderer BarRenderer WindowsClassicBarRenderer object
Derived:
VisualStudioBarRenderer
Implements:
IDisposable IBarRenderer IUIRenderer

Constructors

MetroBarRenderer()

Initializes a new instance of the MetroBarRenderer class.

public MetroBarRenderer()

Remarks

The default constructor initializes all fields to their default values.

MetroBarRenderer(IWindowsColorScheme)

Initializes a new instance of the MetroBarRenderer class.

public MetroBarRenderer(IWindowsColorScheme colorScheme)
Parameter Type Description
colorScheme IWindowsColorScheme

The IWindowsColorScheme to use as a base for the colors.

Remarks

The default constructor initializes all fields to their default values.

MetroBarRenderer(WindowsColorSchemeType)

Initializes a new instance of the MetroBarRenderer class.

public MetroBarRenderer(WindowsColorSchemeType colorSchemeType)
Parameter Type Description
colorSchemeType WindowsColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

Properties

BaseColorSchemeType

Gets or sets the WindowsColorSchemeType to use as a base for the colors.

public virtual WindowsColorSchemeType BaseColorSchemeType { get; set; }

Property Value

WindowsColorSchemeType:

The WindowsColorSchemeType to use as a base for the colors.

Methods

DrawDockableToolBarFloatingTitleBar(PaintEventArgs, Rectangle, DockableToolBar)

Draws a floating dockable toolbar title bar.

public override void DrawDockableToolBarFloatingTitleBar(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

toolBar DockableToolBar

The DockableToolBar being painted.

DrawDockableToolBarGripper(PaintEventArgs, Rectangle, DockableToolBar)

Draws a dockable toolbar gripper.

public override void DrawDockableToolBarGripper(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

toolBar DockableToolBar

The DockableToolBar being painted.

Draws a dockable toolbar options button.

public override void DrawDockableToolBarOptionsButton(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar, BarPopupButtonLink link)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

toolBar DockableToolBar

The DockableToolBar containing the link being painted.

link BarPopupButtonLink

The BarPopupButtonLink being painted.

Inherited Members