In This Article

MetroToolWindowTabStripRenderer Class

Provides a base renderer for the TabStrip control that is similar to a Metro tool window style.

public class MetroToolWindowTabStripRenderer : VisualStudioClassicToolWindowTabStripRenderer, IDisposable, IToolWindowTabStripRenderer, ITabStripRenderer, IUIRenderer
Inheritance:
object DisposableObjectBase UIRenderer TabStripRenderer VisualStudioTabStripRendererBase VisualStudioClassicToolWindowTabStripRenderer object
Derived:
VisualStudioToolWindowTabStripRenderer
Implements:
IDisposable IToolWindowTabStripRenderer ITabStripRenderer IUIRenderer

Constructors

MetroToolWindowTabStripRenderer()

Initializes an instance of the class.

public MetroToolWindowTabStripRenderer()

MetroToolWindowTabStripRenderer(IWindowsColorScheme)

Initializes an instance of the class.

public MetroToolWindowTabStripRenderer(IWindowsColorScheme colorScheme)
Parameter Type Description
colorScheme IWindowsColorScheme

The IWindowsColorScheme to use as a base for the colors.

MetroToolWindowTabStripRenderer(WindowsColorSchemeType)

Initializes an instance of the class.

public MetroToolWindowTabStripRenderer(WindowsColorSchemeType colorSchemeType)
Parameter Type Description
colorSchemeType WindowsColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

Properties

BaseColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

public virtual WindowsColorSchemeType BaseColorSchemeType { get; set; }

Property Value

WindowsColorSchemeType

TabStripTabHotBackgroundFill

The BackgroundFill for a hot TabStripTab.

public BackgroundFill? TabStripTabHotBackgroundFill { get; set; }

Property Value

BackgroundFill

Methods

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose() method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

ResetAll(bool)

Resets all property values to their defaults.

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

Whether to force resetting.

ResetTabStripTabHotBackgroundFill()

Resets the TabStripTabHotBackgroundFill property to its default value.

public virtual void ResetTabStripTabHotBackgroundFill()

ResolveBackgroundFill(TabStripTab)

Returns the BackgroundFill to be used for the TabStripPage based on the current state.

protected override BackgroundFill? ResolveBackgroundFill(TabStripTab tabStripTab)
Parameter Type Description
tabStripTab TabStripTab

The tab strip page to examine.

Returns

BackgroundFill

ShouldSerializeTabStripTabHotBackgroundFill()

Indicates whether the TabStripTabHotBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripTabHotBackgroundFill()

Returns

bool:

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

Inherited Members

Extension Methods