In This Article

MetroLightDockRenderer Class

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

public class MetroLightDockRenderer : VisualStudio2005DockRenderer, IDisposable, IDockRenderer, IUIRenderer
Inheritance:
Object MarshalByRefObject DisposableObject DockRenderer VisualStudio2002DockRenderer VisualStudio2005DockRenderer Object
Implements:
IDisposable IDockRenderer IUIRenderer

Constructors

MetroLightDockRenderer()

Initializes a new instance of the MetroLightDockRenderer class.

public MetroLightDockRenderer()

Remarks

The default constructor initializes all fields to their default values.

Properties

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(Boolean)

Resets all property values to their defaults.

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

Whether to force resetting.

ResetAutoHideTabGroupMargin()

Resets the AutoHideTabGroupMargin property to its default value.

public override void ResetAutoHideTabGroupMargin()

ResetAutoHideTabIndent()

Resets the AutoHideTabIndent property to its default value.

public override void ResetAutoHideTabIndent()

ResetAutoHideTabOuterMargin()

Resets the AutoHideTabOuterMargin property to its default value.

public override void ResetAutoHideTabOuterMargin()

ResetAutoHideTabOverlap()

Resets the AutoHideTabOverlap property to its default value.

public override void ResetAutoHideTabOverlap()

ResetAutoHideTabSelectedBackgroundFill()

Resets the AutoHideTabSelectedBackgroundFill property to its default value.

public override void ResetAutoHideTabSelectedBackgroundFill()

ResetAutoHideTabSelectedBorderColor()

Resets the AutoHideTabSelectedBorderColor property to its default value.

public override void ResetAutoHideTabSelectedBorderColor()

ResetAutoHideTabSelectedForeColor()

Resets the AutoHideTabSelectedForeColor property to its default value.

public override void ResetAutoHideTabSelectedForeColor()

ResetAutoHideTabStripPanelBackgroundFill()

Resets the AutoHideTabStripPanelBackgroundFill property to its default value.

public override void ResetAutoHideTabStripPanelBackgroundFill()

ResetAutoHideTabStripPanelMargin()

Resets the AutoHideTabStripPanelMargin property to its default value.

public override void ResetAutoHideTabStripPanelMargin()

ResetAutoHideTabTextMargin()

Resets the AutoHideTabTextMargin property to its default value.

public override void ResetAutoHideTabTextMargin()

ResetAutoHideTabUnselectedBackgroundFill()

Resets the AutoHideTabUnselectedBackgroundFill property to its default value.

public override void ResetAutoHideTabUnselectedBackgroundFill()

ResetAutoHideTabUnselectedBorderColor()

Resets the AutoHideTabUnselectedBorderColor property to its default value.

public override void ResetAutoHideTabUnselectedBorderColor()

ResetAutoHideTabUnselectedForeColor()

Resets the AutoHideTabUnselectedForeColor property to its default value.

public override void ResetAutoHideTabUnselectedForeColor()

ResetDockContainerBackgroundFill()

Resets the DockContainerBackgroundFill property to its default value.

public override void ResetDockContainerBackgroundFill()

ResetDockContainerTitleBarActiveBackgroundFill()

Resets the DockContainerTitleBarActiveBackgroundFill property to its default value.

public override void ResetDockContainerTitleBarActiveBackgroundFill()

ResetDockContainerTitleBarActiveBorder()

Resets the DockContainerTitleBarActiveBorder property to its default value.

public override void ResetDockContainerTitleBarActiveBorder()

ResetDockContainerTitleBarActiveButtonHotGlyphColor()

Resets the DockContainerTitleBarActiveButtonHotGlyphColor property to its default value.

public override void ResetDockContainerTitleBarActiveButtonHotGlyphColor()

ResetDockContainerTitleBarActiveButtonHotPressedGlyphColor()

Resets the DockContainerTitleBarActiveButtonHotPressedGlyphColor property to its default value.

public override void ResetDockContainerTitleBarActiveButtonHotPressedGlyphColor()

ResetDockContainerTitleBarActiveButtonNormalGlyphColor()

Resets the DockContainerTitleBarActiveButtonNormalGlyphColor property to its default value.

public override void ResetDockContainerTitleBarActiveButtonNormalGlyphColor()

ResetDockContainerTitleBarActiveForeColor()

Resets the DockContainerTitleBarActiveForeColor property to its default value.

public override void ResetDockContainerTitleBarActiveForeColor()

ResetDockContainerTitleBarActiveGripperColor()

Resets the DockContainerTitleBarActiveGripperColor property to its default value.

public virtual void ResetDockContainerTitleBarActiveGripperColor()

ResetDockContainerTitleBarButtonHotBackgroundFill()

Resets the DockContainerTitleBarButtonHotBackgroundFill property to its default value.

public override void ResetDockContainerTitleBarButtonHotBackgroundFill()

ResetDockContainerTitleBarButtonHotBorder()

Resets the DockContainerTitleBarButtonHotBorder property to its default value.

public override void ResetDockContainerTitleBarButtonHotBorder()

ResetDockContainerTitleBarButtonHotPressedBackgroundFill()

Resets the DockContainerTitleBarButtonHotPressedBackgroundFill property to its default value.

public override void ResetDockContainerTitleBarButtonHotPressedBackgroundFill()

ResetDockContainerTitleBarButtonHotPressedBorder()

Resets the DockContainerTitleBarButtonHotPressedBorder property to its default value.

public override void ResetDockContainerTitleBarButtonHotPressedBorder()

ResetDockContainerTitleBarInactiveBackgroundFill()

Resets the DockContainerTitleBarInactiveBackgroundFill property to its default value.

public override void ResetDockContainerTitleBarInactiveBackgroundFill()

ResetDockContainerTitleBarInactiveBorder()

Resets the DockContainerTitleBarInactiveBorder property to its default value.

public override void ResetDockContainerTitleBarInactiveBorder()

ResetDockContainerTitleBarInactiveButtonHotGlyphColor()

Resets the DockContainerTitleBarInactiveButtonHotGlyphColor property to its default value.

public override void ResetDockContainerTitleBarInactiveButtonHotGlyphColor()

ResetDockContainerTitleBarInactiveButtonHotPressedGlyphColor()

Resets the DockContainerTitleBarInactiveButtonHotPressedGlyphColor property to its default value.

public override void ResetDockContainerTitleBarInactiveButtonHotPressedGlyphColor()

ResetDockContainerTitleBarInactiveButtonNormalGlyphColor()

Resets the DockContainerTitleBarInactiveButtonNormalGlyphColor property to its default value.

public override void ResetDockContainerTitleBarInactiveButtonNormalGlyphColor()

ResetDockContainerTitleBarInactiveForeColor()

Resets the DockContainerTitleBarInactiveForeColor property to its default value.

public override void ResetDockContainerTitleBarInactiveForeColor()

ResetDockContainerTitleBarInactiveGripperColor()

Resets the DockContainerTitleBarInactiveGripperColor property to its default value.

public virtual void ResetDockContainerTitleBarInactiveGripperColor()

ResetDockContainerTitleBarPadding()

Resets the DockContainerTitleBarPadding property to its default value.

public override void ResetDockContainerTitleBarPadding()

ResetDockObjectSplitterBackgroundFill()

Resets the DockObjectSplitterBackgroundFill property to its default value.

public override void ResetDockObjectSplitterBackgroundFill()

ResetSplitterExtent()

Resets the SplitterExtent property to its default value.

public override void ResetSplitterExtent()

ResetTabbedMdiContainerPadding()

Resets the TabbedMdiContainerPadding property to its default value.

public override void ResetTabbedMdiContainerPadding()

ResetTabbedMdiRootContainerBackgroundFill()

Resets the TabbedMdiRootContainerBackgroundFill property to its default value.

public override void ResetTabbedMdiRootContainerBackgroundFill()

ResetTabbedMdiRootContainerInnerBorderColor()

Resets the TabbedMdiRootContainerInnerBorderColor property to its default value.

public override void ResetTabbedMdiRootContainerInnerBorderColor()

ResetTabbedMdiRootContainerOuterBorderColor()

Resets the TabbedMdiRootContainerOuterBorderColor property to its default value.

public override void ResetTabbedMdiRootContainerOuterBorderColor()

ResetTabbedMdiWindowBackgroundFill()

Resets the TabbedMdiWindowBackgroundFill property to its default value.

public override void ResetTabbedMdiWindowBackgroundFill()

ShouldSerializeAutoHideTabGroupMargin()

Indicates whether the AutoHideTabGroupMargin property should be persisted.

public override bool ShouldSerializeAutoHideTabGroupMargin()

Returns

Boolean:

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

ShouldSerializeAutoHideTabIndent()

Indicates whether the AutoHideTabIndent property should be persisted.

public override bool ShouldSerializeAutoHideTabIndent()

Returns

Boolean:

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

ShouldSerializeAutoHideTabOuterMargin()

Indicates whether the AutoHideTabOuterMargin property should be persisted.

public override bool ShouldSerializeAutoHideTabOuterMargin()

Returns

Boolean:

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

ShouldSerializeAutoHideTabOverlap()

Indicates whether the AutoHideTabOverlap property should be persisted.

public override bool ShouldSerializeAutoHideTabOverlap()

Returns

Boolean:

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

ShouldSerializeAutoHideTabSelectedBackgroundFill()

Indicates whether the AutoHideTabSelectedBackgroundFill property should be persisted.

public override bool ShouldSerializeAutoHideTabSelectedBackgroundFill()

Returns

Boolean:

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

ShouldSerializeAutoHideTabSelectedBorderColor()

Indicates whether the AutoHideTabSelectedBorderColor property should be persisted.

public override bool ShouldSerializeAutoHideTabSelectedBorderColor()

Returns

Boolean:

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

ShouldSerializeAutoHideTabSelectedForeColor()

Indicates whether the AutoHideTabSelectedForeColor property should be persisted.

public override bool ShouldSerializeAutoHideTabSelectedForeColor()

Returns

Boolean:

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

ShouldSerializeAutoHideTabStripPanelBackgroundFill()

Indicates whether the AutoHideTabStripPanelBackgroundFill property should be persisted.

public override bool ShouldSerializeAutoHideTabStripPanelBackgroundFill()

Returns

Boolean:

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

ShouldSerializeAutoHideTabStripPanelMargin()

Indicates whether the AutoHideTabStripPanelMargin property should be persisted.

public override bool ShouldSerializeAutoHideTabStripPanelMargin()

Returns

Boolean:

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

ShouldSerializeAutoHideTabTextMargin()

Indicates whether the AutoHideTabTextMargin property should be persisted.

public override bool ShouldSerializeAutoHideTabTextMargin()

Returns

Boolean:

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

ShouldSerializeAutoHideTabUnselectedBackgroundFill()

Indicates whether the AutoHideTabUnselectedBackgroundFill property should be persisted.

public override bool ShouldSerializeAutoHideTabUnselectedBackgroundFill()

Returns

Boolean:

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

ShouldSerializeAutoHideTabUnselectedBorderColor()

Indicates whether the AutoHideTabUnselectedBorderColor property should be persisted.

public override bool ShouldSerializeAutoHideTabUnselectedBorderColor()

Returns

Boolean:

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

ShouldSerializeAutoHideTabUnselectedForeColor()

Indicates whether the AutoHideTabUnselectedForeColor property should be persisted.

public override bool ShouldSerializeAutoHideTabUnselectedForeColor()

Returns

Boolean:

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

ShouldSerializeDockContainerBackgroundFill()

Indicates whether the DockContainerBackgroundFill property should be persisted.

public override bool ShouldSerializeDockContainerBackgroundFill()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveBackgroundFill()

Indicates whether the DockContainerTitleBarActiveBackgroundFill property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveBackgroundFill()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveBorder()

Indicates whether the DockContainerTitleBarActiveBorder property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveBorder()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveButtonHotGlyphColor()

Indicates whether the DockContainerTitleBarActiveButtonHotGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveButtonHotGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveButtonHotPressedGlyphColor()

Indicates whether the DockContainerTitleBarActiveButtonHotPressedGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveButtonHotPressedGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveButtonNormalGlyphColor()

Indicates whether the DockContainerTitleBarActiveButtonNormalGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveButtonNormalGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveForeColor()

Indicates whether the DockContainerTitleBarActiveForeColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarActiveForeColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarActiveGripperColor()

Indicates whether the DockContainerTitleBarActiveGripperColor property should be persisted.

public virtual bool ShouldSerializeDockContainerTitleBarActiveGripperColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarButtonHotBackgroundFill()

Indicates whether the DockContainerTitleBarButtonHotBackgroundFill property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarButtonHotBackgroundFill()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarButtonHotBorder()

Indicates whether the DockContainerTitleBarButtonHotBorder property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarButtonHotBorder()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarButtonHotPressedBackgroundFill()

Indicates whether the DockContainerTitleBarButtonHotPressedBackgroundFill property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarButtonHotPressedBackgroundFill()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarButtonHotPressedBorder()

Indicates whether the DockContainerTitleBarButtonHotPressedBorder property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarButtonHotPressedBorder()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveBackgroundFill()

Indicates whether the DockContainerTitleBarInactiveBackgroundFill property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveBackgroundFill()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveBorder()

Indicates whether the DockContainerTitleBarInactiveBorder property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveBorder()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveButtonHotGlyphColor()

Indicates whether the DockContainerTitleBarInactiveButtonHotGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveButtonHotGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveButtonHotPressedGlyphColor()

Indicates whether the DockContainerTitleBarInactiveButtonHotPressedGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveButtonHotPressedGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveButtonNormalGlyphColor()

Indicates whether the DockContainerTitleBarInactiveButtonNormalGlyphColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveButtonNormalGlyphColor()

Returns

Boolean:

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

ShouldSerializeDockContainerTitleBarInactiveForeColor()

Indicates whether the DockContainerTitleBarInactiveForeColor property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarInactiveForeColor()

Returns

Boolean:

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

Boolean:

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

ShouldSerializeDockContainerTitleBarPadding()

Indicates whether the DockContainerTitleBarPadding property should be persisted.

public override bool ShouldSerializeDockContainerTitleBarPadding()

Returns

Boolean:

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

ShouldSerializeDockObjectSplitterBackgroundFill()

Indicates whether the DockObjectSplitterBackgroundFill property should be persisted.

public override bool ShouldSerializeDockObjectSplitterBackgroundFill()

Returns

Boolean:

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

ShouldSerializeSplitterExtent()

Indicates whether the SplitterExtent property should be persisted.

public override bool ShouldSerializeSplitterExtent()

Returns

Boolean:

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

ShouldSerializeTabbedMdiContainerPadding()

Indicates whether the TabbedMdiContainerPadding property should be persisted.

public override bool ShouldSerializeTabbedMdiContainerPadding()

Returns

Boolean:

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

ShouldSerializeTabbedMdiRootContainerBackgroundFill()

Indicates whether the TabbedMdiRootContainerBackgroundFill property should be persisted.

public override bool ShouldSerializeTabbedMdiRootContainerBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabbedMdiRootContainerInnerBorderColor()

Indicates whether the TabbedMdiRootContainerInnerBorderColor property should be persisted.

public override bool ShouldSerializeTabbedMdiRootContainerInnerBorderColor()

Returns

Boolean:

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

ShouldSerializeTabbedMdiRootContainerOuterBorderColor()

Indicates whether the TabbedMdiRootContainerOuterBorderColor property should be persisted.

public override bool ShouldSerializeTabbedMdiRootContainerOuterBorderColor()

Returns

Boolean:

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

ShouldSerializeTabbedMdiWindowBackgroundFill()

Indicates whether the TabbedMdiWindowBackgroundFill property should be persisted.

public override bool ShouldSerializeTabbedMdiWindowBackgroundFill()

Returns

Boolean:

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

Inherited Members