In This Article

UIRenderer Class

Provides a base implementation of IUIRenderer.

[ToolboxBitmap(typeof(ScrollBarRenderer))]
[TypeConverter(typeof(GenericExpandableNullableObjectConverter))]
public abstract class UIRenderer : DisposableObject, IDisposable, IUIRenderer
Inheritance:
object MarshalByRefObject DisposableObject object
Derived:
BarRenderer StatusBarRenderer DockRenderer TabStripRenderer NavigationBarRenderer ScrollBarRenderer SyntaxEditorRenderer WizardRenderer
Implements:
IDisposable IUIRenderer

Constructors

UIRenderer()

Initializes a new instance of the UIRenderer class.

protected UIRenderer()

Remarks

The default constructor initializes all fields to their default values.

UIRenderer(IWindowsColorScheme)

Initializes a new instance of the UIRenderer class.

protected UIRenderer(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.

Properties

ColorScheme

Gets or sets the IWindowsColorScheme to be used by the renderer.

[Browsable(false)]
public IWindowsColorScheme ColorScheme { get; set; }

Property Value

IWindowsColorScheme:

The resolved IWindowsColorScheme to use for colors.

Remarks

Implementations of this interface should always return a non-null value for this property.

IsSystemUserPreferenceColorChangeMonitored

Gets if the renderer should listen for changes in system user preferences and invoke OnSystemUserPreferenceColorChanged() when a color change is detected.

protected virtual bool IsSystemUserPreferenceColorChangeMonitored { get; }

Property Value

bool:

true if the renderer should monitor for changes; otherwise, false if the renderer should not monitor for changes. The default value is true.

Methods

Dispose(bool)

Disposes any resources used by the object.

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

Whether the object is being disposed.

Equals(object)

Determines whether the specified Object is equal to the current Object.

public override bool Equals(object obj)
Parameter Type Description
obj object

The Object to compare to the current Object.

Returns

bool:

true if the specified Object is equal to the current Object; otherwise, false.

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this object.

OnColorSchemeChanged()

Override this method in derived classes to respond to changes in the ColorScheme property.

protected virtual void OnColorSchemeChanged()

OnPropertyChanged(EventArgs)

Raises the PropertyChanged event.

protected virtual void OnPropertyChanged(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

OnSystemUserPreferenceColorChanged()

Occurs when user preferences are changed for the color category.

protected virtual void OnSystemUserPreferenceColorChanged()

Remarks

This method will only be invoked if IsSystemUserPreferenceColorChangeMonitored returns true.

Events

PropertyChanged

Occurs after a property is changed.

public event EventHandler PropertyChanged

Event Type

EventHandler

Inherited Members

Extension Methods