5 writes to buttonShadow
System.Windows.Forms (5)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
752colors.buttonShadow = SystemColors.ControlDark; 758colors.buttonShadow = ControlPaint.Dark(backColor); 763colors.buttonShadow = ControlPaint.Dark(backColor); 817colors.buttonShadow = colors.windowDisabled; 830colors.buttonShadow = wg.GetNearestColor(colors.buttonShadow);
45 references to buttonShadow
System.Windows.Forms (45)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (10)
243bottomRightInsetPen = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlDark) : new WindowsPen(wg.DeviceContext, colors.buttonShadow); 425pen = new WindowsPen(wg.DeviceContext, colors.buttonShadow); 453WindowsPen pen = up ? new WindowsPen(wg.DeviceContext, colors.highlight) : new WindowsPen(wg.DeviceContext, colors.buttonShadow); 464pen = up ? new WindowsPen(wg.DeviceContext, colors.buttonShadow) : new WindowsPen(wg.DeviceContext, colors.highlight); 637brush.Color = colors.buttonShadow; 663TextRenderer.DrawText(g, Control.Text, Control.Font, r, colors.buttonShadow, formatFlags); 670TextRenderer.DrawText(g, Control.Text, Control.Font, r, colors.buttonShadow, formatFlags); 768colors.windowDisabled = (highContrast && AccessibilityImprovements.Level1) ? SystemColors.GrayText : colors.buttonShadow; 810colors.constrastButtonShadow = colors.buttonShadow; 830colors.buttonShadow = wg.GetNearestColor(colors.buttonShadow);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
103DrawFlatBorder(g, r, colors.buttonShadow); 141backColor = colors.options.highContrast ? colors.buttonShadow : colors.lowHighlight; 144backColor = MixedColor(colors.options.highContrast ? colors.buttonShadow : colors.lowHighlight, colors.buttonFace); 177DrawFlatBorder(g, r, colors.buttonShadow);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (5)
53DrawDefaultBorder(g, r, colors.options.highContrast ? colors.windowText : colors.buttonShadow, this.Control.IsDefault); 56DrawFlatBorder(g, r, colors.options.highContrast ? colors.windowText : colors.buttonShadow); 93DrawDefaultBorder(g, r, colors.options.highContrast ? colors.windowText : colors.buttonShadow, this.Control.IsDefault); 98buttonShadow = new Pen(colors.buttonShadow)) { 143ControlPaint.DrawBorder(g, r, colors.options.highContrast ? colors.windowText : colors.buttonShadow, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
216ControlPaint.DrawBorder(g, r, colors.buttonShadow, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (3)
137checkColor = colors.buttonShadow; 141colors.buttonShadow; 177shadow = new WindowsPen(wg.DeviceContext, colors.buttonShadow),
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (6)
31PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors); 46PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors); 61PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
40(colors.options.highContrast && !Control.Enabled && AccessibilityImprovements.Level1) ? colors.windowFrame : colors.buttonShadow);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
43using (Pen dark = new Pen(colors.buttonShadow),
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (6)
34PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors); 50PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors); 66PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (2)
34DrawCheckBackgroundFlat(e, layout.checkBounds, colors.buttonShadow, colors.options.highContrast ? colors.buttonFace : colors.highlight); 80DrawCheckOnly(e, layout, colors.buttonShadow, colors.highlight, true);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
823windowsBrush = new System.Windows.Forms.Internal.WindowsSolidBrush(wg.DeviceContext, colors.buttonShadow); 884colors.options.highContrast ? colors.windowText : colors.buttonShadow, 898colors.options.highContrast ? colors.windowText : colors.buttonShadow, 909ButtonBaseAdapter.DrawDefaultBorder(g, valBounds, colors.options.highContrast ? colors.windowText : colors.buttonShadow, false /*isDefault*/); 910ButtonBaseAdapter.DrawFlatBorder(g, valBounds, colors.options.highContrast ? colors.windowText : colors.buttonShadow);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1592ButtonBaseAdapter.DrawFlatBorder(g, layout.checkBounds, colors.buttonShadow);