Defines whether the control uses dark mode colors.
Class: SoftelvdmUserControl
Namespace: Softelvdm.SftDateNET.Controls
Assembly: Softelvdm.SftDateNET
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 field's border and buttons, the dropdown and the calendar use dark colors and 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 SoftelvdmUserControl.DarkModeActive property returns the resulting state.
"French (France)",
"Japanese (Japan), Japanese calendar",
"Arabic (Saudi Arabia), Hijri calendar",
"Hebrew (Israel), Hebrew calendar",
"Thai (Thailand), Buddhist calendar",
"Persian (Iran), Persian calendar",
});
comboCulture.SelectedIndex = 0;
FillCombo(comboDarkMode, typeof(DarkModeEnum), sftCalendar1.DarkMode);
FillCombo(comboHighContrast, typeof(HighContrastModeEnum), sftCalendar1.HighContrastMode);
FillCombo(comboButtons, typeof(FieldButtonsEnum), sftDate1.Buttons);
comboWeekNumbers.Items.AddRange(new object[] { "None", "Culture rule", "ISO 8601" });
comboWeekNumbers.SelectedIndex = 0;
FillCombo(comboFirstDay, typeof(FirstDayOfWeekEnum), sftCalendar1.Calendar.FirstDayOfWeek);
ShowSelection();
}
"German (Germany)",
"French (France)",
"Japanese (Japan), Japanese calendar",
"Arabic (Saudi Arabia), Hijri calendar",
"Hebrew (Israel), Hebrew calendar",
"Thai (Thailand), Buddhist calendar",
"Persian (Iran), Persian calendar"})
ComboCulture.SelectedIndex = 0
FillCombo(ComboDarkMode, GetType(DarkModeEnum), SftCalendar1.DarkMode)
FillCombo(ComboHighContrast, GetType(HighContrastModeEnum), SftCalendar1.HighContrastMode)
FillCombo(ComboButtons, GetType(FieldButtonsEnum), SftDate1.Buttons)
ComboWeekNumbers.Items.AddRange(New Object() {"None", "Culture rule", "ISO 8601"})
ComboWeekNumbers.SelectedIndex = 0
FillCombo(ComboFirstDay, GetType(FirstDayOfWeekEnum), SftCalendar1.Calendar.FirstDayOfWeek)
ShowSelection()
End SubSee Also SoftelvdmUserControl Class | Classes | SftDate/NET 3.0