Defines whether the forms of the application use the colors of the Windows contrast theme.
Class: SftStyle
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public HighContrastModeEnum HighContrastMode { get; set; }
Public Property HighContrastMode As HighContrastModeEnumThe high contrast setting.
The default value is HighContrastModeEnum.Off.
Defines whether the forms of the application use the colors of the Windows contrast theme.
While high contrast is active, the forms are not styled: Windows Forms draws them with the system colors of the contrast theme. High contrast takes precedence over dark mode, so with HighContrastModeEnum.On the forms are never styled in dark mode; while Windows uses no contrast theme they then keep the regular system colors.
comboCity.SelectedIndex = 0;
radioEmail.Checked = true;
listOrders.Items.Add(new ListViewItem(new string[] { "1042", "Avery Johnson", "1,234.50" }));
listOrders.Items.Add(new ListViewItem(new string[] { "1043", "Blake Rivera", "86.00" }));
listOrders.Items.Add(new ListViewItem(new string[] { "1044", "Casey Morgan", "412.75" }));
listOrders.Items.Add(new ListViewItem(new string[] { "1045", "Drew Patel", "2,050.00" }));
FillCombo(comboDarkMode, typeof(DarkModeEnum), sftStyle1.DarkMode);
FillCombo(comboHighContrast, typeof(HighContrastModeEnum), sftStyle1.HighContrastMode);
FillCombo(comboLook, typeof(SliderLookEnum), sliderVolume.Look);
ShowState();
ShowSliders();
}
private void FillCombo(ComboBox combo, Type enumType, object current) {
foreach (object value in Enum.GetValues(enumType))
ComboCity.SelectedIndex = 0
RadioEmail.Checked = True
ListOrders.Items.Add(New ListViewItem(New String() {"1042", "Avery Johnson", "1,234.50"}))
ListOrders.Items.Add(New ListViewItem(New String() {"1043", "Blake Rivera", "86.00"}))
ListOrders.Items.Add(New ListViewItem(New String() {"1044", "Casey Morgan", "412.75"}))
ListOrders.Items.Add(New ListViewItem(New String() {"1045", "Drew Patel", "2,050.00"}))
FillCombo(ComboDarkMode, GetType(DarkModeEnum), SftStyle1.DarkMode)
FillCombo(ComboHighContrast, GetType(HighContrastModeEnum), SftStyle1.HighContrastMode)
FillCombo(ComboLook, GetType(SliderLookEnum), SliderVolume.Look)
ShowState()
ShowSliders()
End Sub
Private Sub FillCombo(ByVal combo As ComboBox, ByVal enumType As Type, ByVal current As Object)
For Each value As Object In [Enum].GetValues(enumType)See Also SftStyle Class | Classes | SftStyle/NET 3.0