In This Article

MetroDockRenderer Class

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

public class MetroDockRenderer : VisualStudioClassicDockRenderer, IDisposable, IDockRenderer, IUIRenderer
Inheritance:
object MarshalByRefObject DisposableObject UIRenderer DockRenderer WindowsClassicDockRenderer VisualStudioClassicDockRenderer object
Derived:
VisualStudioDockRenderer
Implements:
IDisposable IDockRenderer IUIRenderer

Constructors

MetroDockRenderer()

Initializes a new instance of the MetroDockRenderer class.

public MetroDockRenderer()

MetroDockRenderer(IWindowsColorScheme)

Initializes a new instance of the MetroDockRenderer class.

public MetroDockRenderer(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.

MetroDockRenderer(WindowsColorSchemeType)

Initializes a new instance of the MetroDockRenderer class.

public MetroDockRenderer(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.

DockContainerTitleBarActiveGripperColor

Gets or sets the gripper color of an active DockContainer title bar.

public Color DockContainerTitleBarActiveGripperColor { get; set; }

Property Value

Color:

A Color object specifying the gripper color of an active DockContainer title bar.

DockContainerTitleBarInactiveGripperColor

Gets or sets the gripper color of an inactive DockContainer title bar.

public Color DockContainerTitleBarInactiveGripperColor { get; set; }

Property Value

Color:

A Color object specifying the gripper color of an inactive DockContainer title bar.

Methods

DrawAutoHideTab(PaintEventArgs, Rectangle, AutoHideTab)

Draws a AutoHideTab.

public override void DrawAutoHideTab(PaintEventArgs e, Rectangle bounds, AutoHideTab autoHideTab)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

autoHideTab AutoHideTab

The AutoHideTab that is being painted.

DrawDockContainerTitleBarForeground(PaintEventArgs, Rectangle, DockContainer)

Draws the foreground of a DockContainer title bar.

public override void DrawDockContainerTitleBarForeground(PaintEventArgs e, Rectangle bounds, DockContainer dockContainer)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

dockContainer DockContainer

The DockContainer whose title bar is being painted.

DrawDockObjectSplitter(PaintEventArgs, Rectangle, IDockObject, Orientation)

Draws the background of a splitter for a IDockObject.

public override void DrawDockObjectSplitter(PaintEventArgs e, Rectangle bounds, IDockObject dockObject, Orientation orientation)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

dockObject IDockObject

The IDockObject whose splitter is being painted.

orientation Orientation

The Orientation of the splitter.

MeasureAutoHideTab(Graphics, AutoHideTab)

Measures the tab for the specified AutoHideTab.

public override Size MeasureAutoHideTab(Graphics g, AutoHideTab autoHideTab)
Parameter Type Description
g Graphics

The Graphics object used to measure.

autoHideTab AutoHideTab

The AutoHideTab whose tab is being measured.

Returns

Size:

The Size of the tab.

ResetAll(bool)

Resets all property values to their defaults.

protected override void ResetAll(bool force)
Parameter Type Description
force bool

Whether to force resetting.

ResetDockContainerTitleBarActiveGripperColor()

Resets the DockContainerTitleBarActiveGripperColor property to its default value.

public virtual void ResetDockContainerTitleBarActiveGripperColor()

ResetDockContainerTitleBarInactiveGripperColor()

Resets the DockContainerTitleBarInactiveGripperColor property to its default value.

public virtual void ResetDockContainerTitleBarInactiveGripperColor()

ShouldSerializeDockContainerTitleBarActiveGripperColor()

Indicates whether the DockContainerTitleBarActiveGripperColor property should be persisted.

public virtual bool ShouldSerializeDockContainerTitleBarActiveGripperColor()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeDockContainerTitleBarInactiveGripperColor()

Indicates whether the DockContainerTitleBarInactiveGripperColor property should be persisted.

public virtual bool ShouldSerializeDockContainerTitleBarInactiveGripperColor()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

Inherited Members