HeaderPane
Main
Hide
Share Link
Print

DarkMode Property, SoftelvdmUserControl Class

Defines whether the control uses dark mode colors.

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

Syntax

public DarkModeEnum DarkMode { get; set; }
Public Property DarkMode As DarkModeEnum

Value

The dark mode setting.

The default value is DarkModeEnum.Off.

Comments

Defines whether the control uses dark mode colors.

In dark mode, colors that are left at their system defaults are replaced by their dark counterparts and themed elements such as headers, buttons and scrollbars use the dark Windows themes. Colors that are set explicitly are used as defined.

With DarkModeEnum.Auto, the control follows the Windows setting for app mode (Settings, Personalization, Colors) and switches when that setting changes. The DarkModeActive property returns the resulting state.

See Also SoftelvdmUserControl Class | Classes | SftTree/NET 3.0