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