7 writes to ButtonShadow
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (5)
42
colors.
ButtonShadow
= SystemColors.ControlDark;
50
colors.
ButtonShadow
= ControlPaint.Dark(_backColor);
56
colors.
ButtonShadow
= ControlPaint.Dark(_backColor);
103
colors.
ButtonShadow
= colors.WindowDisabled;
114
colors.
ButtonShadow
= hdc.FindNearestColor(colors.ButtonShadow);
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (1)
108
ButtonShadow
= Color.Gray,
System\Windows\Forms\RadioButtonBaseAdapterTests.cs (1)
178
ButtonShadow
= Color.DarkGray,
43 references to ButtonShadow
System.Windows.Forms (43)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (3)
62
colors.WindowDisabled = HighContrast ? SystemColors.GrayText : colors.
ButtonShadow
;
95
colors.ContrastButtonShadow = colors.ButtonFace.GetBrightness() < .5 ? colors.LowHighlight : colors.
ButtonShadow
;
114
colors.ButtonShadow = hdc.FindNearestColor(colors.
ButtonShadow
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (6)
182
: stockColor ? SystemColors.ControlDark : colors.
ButtonShadow
);
285
: stockColor ? SystemColors.ControlDark : colors.
ButtonShadow
);
304
Color color = GetContrastingBorderColor(colors.
ButtonShadow
);
479
using var shadowBrush = colors.
ButtonShadow
.GetCachedSolidBrushScope();
498
TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.
ButtonShadow
, formatFlags);
506
TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.
ButtonShadow
, formatFlags);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (4)
102
ControlPaint.DrawBorderSimple(e, r, colors.
ButtonShadow
);
145
backColor = colors.Options.HighContrast ? colors.
ButtonShadow
: colors.LowHighlight;
149
? colors.
ButtonShadow
190
ControlPaint.DrawBorderSimple(e, r, colors.
ButtonShadow
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (4)
45
: GetContrastingBorderColor(colors.
ButtonShadow
);
84
DrawDefaultBorder(e, r, colors.Options.HighContrast ? colors.WindowText : colors.
ButtonShadow
, Control.IsDefault);
91
using var buttonShadow = colors.
ButtonShadow
.GetCachedPenScope();
136
ControlPaint.DrawBorderSimple(e, r, colors.Options.HighContrast ? colors.WindowText : GetContrastingBorderColor(colors.
ButtonShadow
));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
202
ControlPaint.DrawBorderSimple(e, r, colors.
ButtonShadow
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (3)
164
checkColor = colors.
ButtonShadow
;
168
checkColor = SystemInformation.HighContrast ? colors.Highlight : colors.
ButtonShadow
;
216
using CreatePenScope shadow = new(colors.
ButtonShadow
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (6)
27
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
46
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
65
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
41
(colors.Options.HighContrast && !Control.Enabled) ? colors.WindowFrame : colors.
ButtonShadow
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
41
using var dark = colors.
ButtonShadow
.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (6)
28
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
48
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
68
PaintFlatWorker(e, colors.
ButtonShadow
, colors.ButtonFace, colors.
ButtonShadow
, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (2)
29
colors.
ButtonShadow
,
81
DrawCheckOnly(e, layout, colors.
ButtonShadow
, disabledColors: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
778
colors.Options.HighContrast ? colors.
ButtonShadow
: colors.LowHighlight);
815
colors.Options.HighContrast ? colors.WindowText : colors.
ButtonShadow
,
831
colors.Options.HighContrast ? colors.WindowText : colors.
ButtonShadow
,
846
colors.Options.HighContrast ? colors.WindowText : colors.
ButtonShadow
,
851
colors.Options.HighContrast ? colors.WindowText : colors.
ButtonShadow
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1523
ControlPaint.DrawBorderSimple(g, layout.CheckBounds, colors.
ButtonShadow
);