Defines whether a control uses the colors of the Windows contrast theme.
Class: (none)
Namespace: Softelvdm.SftDateNET.Controls
Assembly: Softelvdm.SftDateNET
public enum HighContrastModeEnum;
Public Enum HighContrastModeEnum
| Name | Description |
|---|---|
| Off | The control's colors are used. |
| On | The system colors of the Windows contrast theme are used. |
| Auto | The system colors of the Windows contrast theme are used while a contrast theme is active in Windows. |
Defines whether a control uses the colors of the Windows contrast theme.
"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();
}
"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 Sub
See Also | Classes | SftDate/NET 3.0