Defines whether a control uses the colors of the Windows contrast theme.
Class: (none)
Namespace: Softelvdm.SftStyleNET.Controls
Assembly: Softelvdm.SftStyleNET
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.
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 | Classes | SftStyle/NET 3.0