In This Article

MetroNavigationBarRenderer Class

Provides a base renderer for the NavigationBar control that has a Metro color schemes.

public class MetroNavigationBarRenderer : Office2003NavigationBarRenderer, IDisposable, INavigationBarRenderer, IUIRenderer
Inheritance:
Object MarshalByRefObject DisposableObject UIRenderer NavigationBarRenderer Office2003NavigationBarRenderer Object
Derived:
MetroLightNavigationBarRenderer
Implements:
System.IDisposable INavigationBarRenderer IUIRenderer

Constructors

MetroNavigationBarRenderer()

Initializes a new instance of the MetroNavigationBarRenderer class.

public MetroNavigationBarRenderer()

MetroNavigationBarRenderer(IWindowsColorScheme)

Initializes a new instance of the MetroNavigationBarRenderer class.

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

MetroNavigationBarRenderer(WindowsColorSchemeType)

Initializes a new instance of the MetroNavigationBarRenderer class.

public MetroNavigationBarRenderer(WindowsColorSchemeType colorSchemeType)
Parameter Type Description
colorSchemeType WindowsColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

Methods

DrawNavigationBarSplitter(PaintEventArgs, Rectangle, NavigationBar)

Draws the splitter of a NavigationBar control.

public override void DrawNavigationBarSplitter(PaintEventArgs e, Rectangle bounds, NavigationBar navigationBar)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

navigationBar NavigationBar

The NavigationBar being painted.

ResetNavigationBarHeaderFont()

Resets the NavigationBarHeaderFont property to its default value.

public override void ResetNavigationBarHeaderFont()

ResetNavigationBarSplitterHeight()

Resets the NavigationBarSplitterHeight property to its default value.

public override void ResetNavigationBarSplitterHeight()

ShouldSerializeNavigationBarHeaderFont()

Indicates whether the NavigationBarHeaderFont property should be persisted.

public override bool ShouldSerializeNavigationBarHeaderFont()

Returns

Boolean:

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

ShouldSerializeNavigationBarSplitterHeight()

Indicates whether the NavigationBarSplitterHeight property should be persisted.

public override bool ShouldSerializeNavigationBarSplitterHeight()

Returns

Boolean:

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

Inherited Members

Extension Methods