HeaderPane
Main
Hide
Share Link
Print

HighContrastMode Property, SoftelvdmUserControl Class

Defines whether the control uses the colors of the Windows contrast theme.

Class: SoftelvdmUserControl
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public HighContrastModeEnum HighContrastMode { get; set; }
Public Property HighContrastMode As HighContrastModeEnum

Value

The high contrast setting.

The default value is HighContrastModeEnum.Off.

Comments

Defines whether the control uses the colors of the Windows contrast theme.

In high contrast mode, the control draws all its elements using the system colors of the user's contrast theme. Colors defined by the application for the control, its columns, items, cells and parts are ignored, and headers, footers, row headers and buttons are drawn without Windows themes.

With HighContrastModeEnum.Auto, the control follows the Windows contrast theme setting (Settings, Accessibility, Contrast themes) and switches when that setting changes. The HighContrastActive property returns the resulting state.

High contrast mode takes precedence over dark mode.

See Also SoftelvdmUserControl Class | Classes | SftTree/NET 3.0