Defines whether the control uses dark mode colors.
Class: SoftelvdmUserControl
Namespace: Softelvdm.SftTabsNET.Controls
Assembly: Softelvdm.SftTabsNET
public DarkModeEnum DarkMode { get; set; }
Public Property DarkMode As DarkModeEnumThe dark mode setting.
The default value is DarkModeEnum.Off.
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 the Themed look (SftTabs.Look property) draws tabs like the Flat look. 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 SoftelvdmUserControl.DarkModeActive property returns the resulting state.
private void Form1_Load(object sender, EventArgs e) {
// the options show the properties as they were defined in the designer
loading = true;
FillCombo(comboLook, sftTabs1.Look);
FillCombo(comboPosition, sftTabs1.TabPosition);
FillCombo(comboOrientation, sftTabs1.TextOrientation);
FillCombo(comboAlignment, sftTabs1.TabAlignment);
FillCombo(comboCloseButton, sftTabs1.TabCloseButton);
FillCombo(comboDarkMode, sftTabs1.DarkMode);
FillCombo(comboLayout, sftTabs1.LayoutMode);
checkScrolling.Checked = sftTabs1.Scrolling.Enabled;
numericRows.Value = sftTabs1.Rows;
checkFixed.Checked = sftTabs1.Fixed;
checkFill.Checked = sftTabs1.FillComplete;
checkBold.Checked = sftTabs1.BoldSelected;
checkFlyby.Checked = sftTabs1.FlybyHighlight;
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' the options show the properties as they were defined in the designer
loading = True
FillCombo(ComboLook, SftTabs1.Look)
FillCombo(ComboPosition, SftTabs1.TabPosition)
FillCombo(ComboOrientation, SftTabs1.TextOrientation)
FillCombo(ComboAlignment, SftTabs1.TabAlignment)
FillCombo(ComboCloseButton, SftTabs1.TabCloseButton)
FillCombo(ComboDarkMode, SftTabs1.DarkMode)
FillCombo(ComboLayout, SftTabs1.LayoutMode)
CheckScrolling.Checked = SftTabs1.Scrolling.Enabled
NumericRows.Value = SftTabs1.Rows
CheckFixed.Checked = SftTabs1.Fixed
CheckFill.Checked = SftTabs1.FillComplete
CheckBold.Checked = SftTabs1.BoldSelected
CheckFlyby.Checked = SftTabs1.FlybyHighlightSee Also SoftelvdmUserControl Class | Classes | SftTabs/NET 3.0