MetroStatusBarRenderer Class
Provides a base renderer for StatusBar controls that have a Metro appearance.
public class MetroStatusBarRenderer : StatusBarRenderer, IDisposable, IStatusBarRenderer, IUIRenderer
- Inheritance:
- object DisposableObjectBase UIRenderer StatusBarRenderer object
- Implements:
- IDisposable IStatusBarRenderer IUIRenderer
Constructors
MetroStatusBarRenderer()
Initializes an instance of the class.
public MetroStatusBarRenderer()
MetroStatusBarRenderer(IWindowsColorScheme)
Initializes an instance of the class.
public MetroStatusBarRenderer(IWindowsColorScheme colorScheme)
| Parameter | Type | Description |
|---|---|---|
| colorScheme | IWindowsColorScheme | The IWindowsColorScheme to use as a base for the colors. |
MetroStatusBarRenderer(WindowsColorSchemeType)
Initializes an instance of the class.
public MetroStatusBarRenderer(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 WindowsColorSchemeType BaseColorSchemeType { get; set; }
Property Value
StatusBarBackgroundFill
The BackgroundFill for a statusbar.
StatusBarGripperDarkColor
The dark Color of the gripper.
StatusBarGripperLightColor
The light Color of the gripper.
StatusBarPanelDefaultBackgroundFill
The default BackgroundFill for a statusbar panel.
public BackgroundFill? StatusBarPanelDefaultBackgroundFill { get; set; }
Property Value
StatusBarPanelDefaultDisabledForeColor
The default disabled foreground color of statusbar panel text.
StatusBarPanelDefaultForeColor
The default foreground color of statusbar panel text.
StatusBarProgressBarPanelDefaultFilledBackgroundFill
The default BackgroundFill for a progress bar panel's filled area.
public BackgroundFill? StatusBarProgressBarPanelDefaultFilledBackgroundFill { get; set; }
Property Value
StatusBarProgressBarPanelDefaultUnfilledBackgroundFill
The default BackgroundFill for a progress bar panel's unfilled area.
public BackgroundFill? StatusBarProgressBarPanelDefaultUnfilledBackgroundFill { get; set; }
Property Value
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 |
|
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.
DrawStatusBarBackground(PaintEventArgs, Rectangle, StatusBar)
Draws the background of a StatusBar control.
public override void DrawStatusBarBackground(PaintEventArgs e, Rectangle bounds, StatusBar statusBar)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | A PaintEventArgs that contains the event data. |
| bounds | Rectangle | The bounds in which to draw. |
| statusBar | StatusBar | The StatusBar being painted. |
DrawStatusBarGripper(PaintEventArgs, Rectangle, StatusBar)
Draws the gripper of a StatusBar control.
public override void DrawStatusBarGripper(PaintEventArgs e, Rectangle bounds, StatusBar statusBar)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | A PaintEventArgs that contains the event data. |
| bounds | Rectangle | The bounds in which to draw. |
| statusBar | StatusBar | The StatusBar being painted. |
DrawStatusBarLabelPanel(PaintEventArgs, Rectangle, StatusBarLabelPanel)
Draws the a StatusBarLabelPanel.
public override void DrawStatusBarLabelPanel(PaintEventArgs e, Rectangle bounds, StatusBarLabelPanel panel)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | A PaintEventArgs that contains the event data. |
| bounds | Rectangle | The bounds in which to draw. |
| panel | StatusBarLabelPanel | The StatusBarLabelPanel being painted. |
DrawStatusBarProgressBarPanel(PaintEventArgs, Rectangle, StatusBarProgressBarPanel)
Draws the a StatusBarProgressBarPanel.
public override void DrawStatusBarProgressBarPanel(PaintEventArgs e, Rectangle bounds, StatusBarProgressBarPanel panel)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | A PaintEventArgs that contains the event data. |
| bounds | Rectangle | The bounds in which to draw. |
| panel | StatusBarProgressBarPanel | The StatusBarProgressBarPanel being painted. |
ResetAll(bool)
Resets all property values to their defaults.
protected override void ResetAll(bool force)
| Parameter | Type | Description |
|---|---|---|
| force | bool | Whether to force resetting. |
ResetStatusBarBackgroundFill()
Resets the StatusBarBackgroundFill property to its default value.
public virtual void ResetStatusBarBackgroundFill()
ResetStatusBarGripperDarkColor()
Resets the StatusBarGripperDarkColor property to its default value.
public virtual void ResetStatusBarGripperDarkColor()
ResetStatusBarGripperLightColor()
Resets the StatusBarGripperLightColor property to its default value.
public virtual void ResetStatusBarGripperLightColor()
ResetStatusBarPanelDefaultBackgroundFill()
Resets the StatusBarPanelDefaultBackgroundFill property to its default value.
public virtual void ResetStatusBarPanelDefaultBackgroundFill()
ResetStatusBarPanelDefaultDisabledForeColor()
Resets the StatusBarPanelDefaultDisabledForeColor property to its default value.
public virtual void ResetStatusBarPanelDefaultDisabledForeColor()
ResetStatusBarPanelDefaultForeColor()
Resets the StatusBarPanelDefaultForeColor property to its default value.
public virtual void ResetStatusBarPanelDefaultForeColor()
ResetStatusBarProgressBarPanelDefaultFilledBackgroundFill()
Resets the StatusBarProgressBarPanelDefaultFilledBackgroundFill property to its default value.
public virtual void ResetStatusBarProgressBarPanelDefaultFilledBackgroundFill()
ResetStatusBarProgressBarPanelDefaultUnfilledBackgroundFill()
Resets the StatusBarProgressBarPanelDefaultUnfilledBackgroundFill property to its default value.
public virtual void ResetStatusBarProgressBarPanelDefaultUnfilledBackgroundFill()
ShouldSerializeStatusBarBackgroundFill()
Indicates whether the StatusBarBackgroundFill property should be persisted.
public virtual bool ShouldSerializeStatusBarBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarGripperDarkColor()
Indicates whether the StatusBarGripperDarkColor property should be persisted.
public virtual bool ShouldSerializeStatusBarGripperDarkColor()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarGripperLightColor()
Indicates whether the StatusBarGripperLightColor property should be persisted.
public virtual bool ShouldSerializeStatusBarGripperLightColor()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarPanelDefaultBackgroundFill()
Indicates whether the StatusBarPanelDefaultBackgroundFill property should be persisted.
public virtual bool ShouldSerializeStatusBarPanelDefaultBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarPanelDefaultDisabledForeColor()
Indicates whether the StatusBarPanelDefaultDisabledForeColor property should be persisted.
public virtual bool ShouldSerializeStatusBarPanelDefaultDisabledForeColor()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarPanelDefaultForeColor()
Indicates whether the StatusBarPanelDefaultForeColor property should be persisted.
public virtual bool ShouldSerializeStatusBarPanelDefaultForeColor()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarProgressBarPanelDefaultFilledBackgroundFill()
Indicates whether the StatusBarProgressBarPanelDefaultFilledBackgroundFill property should be persisted.
public virtual bool ShouldSerializeStatusBarProgressBarPanelDefaultFilledBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeStatusBarProgressBarPanelDefaultUnfilledBackgroundFill()
Indicates whether the StatusBarProgressBarPanelDefaultUnfilledBackgroundFill property should be persisted.
public virtual bool ShouldSerializeStatusBarProgressBarPanelDefaultUnfilledBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
Inherited Members
- StatusBarRenderer.OnSystemUserPreferenceColorChanged()
- StatusBarRenderer.ResetResetAllPropertiesOnSystemColorChange()
- StatusBarRenderer.ShouldSerializeResetAllPropertiesOnSystemColorChange()
- StatusBarRenderer.ResetStatusBarGripperWidth()
- StatusBarRenderer.ShouldSerializeStatusBarGripperWidth()
- StatusBarRenderer.ResetStatusBarPadding()
- StatusBarRenderer.ShouldSerializeStatusBarPadding()
- StatusBarRenderer.ResetStatusBarPanelActiveLinkColor()
- StatusBarRenderer.ShouldSerializeStatusBarPanelActiveLinkColor()
- StatusBarRenderer.ResetStatusBarPanelDefaultFont()
- StatusBarRenderer.ShouldSerializeStatusBarPanelDefaultFont()
- StatusBarRenderer.ResetStatusBarPanelImageDefaultSize()
- StatusBarRenderer.ShouldSerializeStatusBarPanelImageDefaultSize()
- StatusBarRenderer.ResetStatusBarPanelImageTextMargin()
- StatusBarRenderer.ShouldSerializeStatusBarPanelImageTextMargin()
- StatusBarRenderer.ResetStatusBarPanelLinkColor()
- StatusBarRenderer.ShouldSerializeStatusBarPanelLinkColor()
- StatusBarRenderer.ResetStatusBarPanelMargin()
- StatusBarRenderer.ShouldSerializeStatusBarPanelMargin()
- StatusBarRenderer.ResetStatusBarPanelVisitedLinkColor()
- StatusBarRenderer.ShouldSerializeStatusBarPanelVisitedLinkColor()
- StatusBarRenderer.ResetAllPropertiesOnSystemColorChange
- StatusBarRenderer.StatusBarGripperWidth
- StatusBarRenderer.StatusBarPadding
- StatusBarRenderer.StatusBarPanelActiveLinkColor
- StatusBarRenderer.StatusBarPanelDefaultFont
- StatusBarRenderer.StatusBarPanelImageDefaultSize
- StatusBarRenderer.StatusBarPanelImageTextMargin
- StatusBarRenderer.StatusBarPanelLinkColor
- StatusBarRenderer.StatusBarPanelMargin
- StatusBarRenderer.StatusBarPanelVisitedLinkColor
- UIRenderer.Equals(object)
- UIRenderer.GetHashCode()
- UIRenderer.OnColorSchemeChanged()
- UIRenderer.OnPropertyChanged(EventArgs)
- UIRenderer.ColorScheme
- UIRenderer.IsSystemUserPreferenceColorChangeMonitored
- UIRenderer.PropertyChanged
- DisposableObjectBase.Dispose()
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)