6 writes to focus
System.Windows.Forms (6)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (4)
1123
layout.
focus
= layout.field;
1127
layout.
focus
= LayoutUtils.InflateRect(layout.focus, this.padding);
1133
layout.
focus
= Rectangle.Union(textAdjusted, layout.imageBounds);
1136
layout.
focus
= textAdjusted;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (1)
283
layout.
focus
= Control.AutoSize ? Rectangle.Inflate(layout.checkBounds, -2, -2) : layout.field;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
203
layout.
focus
= Control.AutoSize ? layout.checkBounds : layout.field;
21 references to focus
System.Windows.Forms (21)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (9)
705
Rectangle maxFocus = layout.
focus
;
1124
layout.
focus
.Inflate(-1, -1);
1127
layout.focus = LayoutUtils.InflateRect(layout.
focus
, this.padding);
1140
if (layout.
focus
.Height % 2 == 0) {
1141
layout.
focus
.Y++;
1142
layout.
focus
.Height--;
1144
if (layout.
focus
.Width % 2 == 0) {
1145
layout.
focus
.X++;
1146
layout.
focus
.Width--;
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (3)
84
DrawFlatFocus(g, layout.
focus
, colors.options.highContrast ? colors.windowText : colors.constrastButtonShadow);
159
DrawFlatFocus(g, layout.
focus
, colors.options.highContrast ? colors.windowText : colors.constrastButtonShadow);
243
DrawFlatFocus(g, layout.
focus
, colors.constrastButtonShadow);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (2)
183
layout.
focus
.Inflate(1, 1);
192
ControlPaint.DrawHighContrastFocusRectangle(g, layout.
focus
, highlightTextColor);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (5)
40
int focusRectFixup = layout.
focus
.X & 0x1; // if it's odd, subtract one pixel for fixup.
44
layout.
focus
.Offset(-(focusRectFixup + 1), -2);
45
layout.
focus
.Width = layout.textBounds.Width + layout.imageBounds.Width - 1;
46
layout.
focus
.Intersect(layout.textBounds);
50
layout.
focus
.Width += 2;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
973
layout.
focus
,
1003
layout.
focus
,