62 references to HighContrast
System.Windows.Forms (61)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (8)
86
return SystemInformation.
HighContrast
&& Application.RenderWithVisualStyles &&
153
if (Control.BackColor != SystemColors.Control && SystemInformation.
HighContrast
) {
174
bool disabledHighContrast = (!Control.Enabled) && SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1;
213
if (SystemInformation.
HighContrast
) {
221
if (SystemInformation.
HighContrast
) {
338
bool disabledHighContrast = (!Control.Enabled) && SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1;
397
if (SystemInformation.
HighContrast
) {
735
highContrast = SystemInformation.
HighContrast
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (9)
36
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.
HighContrast
? state != CheckState.Indeterminate : state == CheckState.Unchecked),
37
!hasCustomBorder && SystemInformation.
HighContrast
&& state == CheckState.Checked,
101
else if (state == CheckState.Checked && SystemInformation.
HighContrast
) {
118
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.
HighContrast
? state != CheckState.Indeterminate : state == CheckState.Unchecked),
119
!hasCustomBorder && SystemInformation.
HighContrast
&& state == CheckState.Checked,
175
else if (state == CheckState.Checked && SystemInformation.
HighContrast
) {
188
if (SystemInformation.
HighContrast
) {
295
layout.shadowedText = SystemInformation.
HighContrast
;
308
layout.shadowedText = SystemInformation.
HighContrast
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (5)
65
LayoutData layout = PaintPopupLayout(e, state == CheckState.Unchecked, SystemInformation.
HighContrast
? 2 : 1).Layout();
95
if (SystemInformation.
HighContrast
) {
126
LayoutData layout = PaintPopupLayout(e, false, SystemInformation.
HighContrast
? 2 : 1).Layout();
167
layout.shadowedText = SystemInformation.
HighContrast
;
184
layout.shadowedText = SystemInformation.
HighContrast
;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
93
Color comboColor = SystemInformation.
HighContrast
? SystemColors.ControlDark :
140
checkColor = SystemInformation.
HighContrast
? colors.highlight :
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
67
if (!SystemInformation.
HighContrast
|| !AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
345
&& SystemInformation.
HighContrast
winforms\Managed\System\WinForms\ControlPaint.cs (5)
142
return SystemInformation.
HighContrast
? SystemColors.WindowFrame : SystemColors.ControlDark;
1046
if (SystemInformation.
HighContrast
) {
1242
((SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1) ? SystemColors.GrayText : SystemColors.ControlDark) :
1935
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1) {
1963
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
959
SystemInformation.
HighContrast
,
989
SystemInformation.
HighContrast
? 2 : 1,
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1686
if (SystemInformation.
HighContrast
)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
2299
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1)
2326
bool highContrast = SystemInformation.
HighContrast
;
2354
if (SystemInformation.
HighContrast
) {
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (6)
67
else if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
110
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
200
else if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
243
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
404
else if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
447
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (3)
70
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
180
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
353
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level2)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
17154
if (SystemInformation.
HighContrast
)
winforms\Managed\System\WinForms\DisplayInformation.cs (1)
73
highContrast = SystemInformation.
HighContrast
;
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (1)
339
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
626
if (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (1)
323
&& SystemInformation.
HighContrast
winforms\Managed\System\WinForms\LinkLabel.cs (2)
312
if (SystemInformation.
HighContrast
) {
471
if (SystemInformation.
HighContrast
) {
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
92
private Color lineColor = SystemInformation.
HighContrast
? (AccessibilityImprovements.Level1 ? SystemColors.ControlDarkDark : SystemColors.ControlDark )
4344
if (DrawFlatToolbar || (SystemInformation.
HighContrast
&& AccessibilityImprovements.Level1)) {
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
217
if (SystemInformation.
HighContrast
&& !OwnerGrid.developerOverride && AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
157
if (Control.BackColor != SystemColors.Control && SystemInformation.
HighContrast
) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
179
return SystemInformation.
HighContrast
&& !OwnerGrid.developerOverride && AccessibilityImprovements.Level1;
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
284
&& SystemInformation.
HighContrast
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
726
if (AccessibilityImprovements.Level2 && SystemInformation.
HighContrast
&& (comboBox.ContainsFocus || comboBox.MouseIsOver) && ToolStripManager.VisualStylesEnabled) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
183
if (Selected && !Pressed && AccessibilityImprovements.Level2 && SystemInformation.
HighContrast
) {
System.Workflow.ComponentModel (1)
AuthoringOM\Design\DesignerWidgets.cs (1)
1880
if (SystemInformation.
HighContrast
)