60 references to Control
System.Windows.Forms (60)
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (20)
65if (Control.CheckState == CheckState.Indeterminate) { 118if (Control.CheckState == CheckState.Indeterminate) { 122DrawCheckBackground(Control.Enabled, Control.CheckState, e.Graphics, bounds, checkColor, checkBackground, disabledColors, colors); 127DrawCheckOnly(flatCheckSize, Control.Checked, Control.Enabled, Control.CheckState, e.Graphics, layout, colors, checkColor, checkBackground); 197if (Control.CheckState == CheckState.Unchecked) { 204if (!Control.Enabled) { 208if (Control.MouseIsDown) { 220if (Control.CheckState == CheckState.Indeterminate) { 222CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, true, Control.MouseIsOver), Control.HandleInternal); 230CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, false, Control.MouseIsOver), Control.HandleInternal); 278if (AccessibilityImprovements.Level2 && String.IsNullOrEmpty(Control.Text)) { 283layout.focus = Control.AutoSize ? Rectangle.Inflate(layout.checkBounds, -2, -2) : layout.field; 289layout.checkAlign = Control.CheckAlign; 291layout.shadowedText = !Control.Enabled; 292layout.layoutRTL = RightToLeft.Yes == Control.RightToLeft;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (11)
21if (Control.Appearance == Appearance.Button) { 22ButtonAdapter.PaintDown(e, Control.CheckState); 27if (Control.Enabled) { 36if (Control.Appearance == Appearance.Button) { 37ButtonAdapter.PaintOver(e, Control.CheckState); 42if (Control.Enabled) { 51if (Control.Appearance == Appearance.Button) { 52ButtonAdapter.PaintUp(e, Control.CheckState); 57if (Control.Enabled) { 68PaintButtonBackground(e, Control.ClientRectangle, null); 85return new ButtonFlatAdapter(Control);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (15)
24if (Control.Appearance == Appearance.Button) { 25ButtonPopupAdapter adapter = new ButtonPopupAdapter(Control); 26adapter.PaintUp(e, Control.CheckState); 34PaintButtonBackground(e, Control.ClientRectangle, null); 40(colors.options.highContrast && !Control.Enabled && AccessibilityImprovements.Level1) ? colors.windowFrame : colors.buttonShadow); 50if (Control.Appearance == Appearance.Button) { 51ButtonPopupAdapter adapter = new ButtonPopupAdapter(Control); 52adapter.PaintOver(e, Control.CheckState); 59PaintButtonBackground(e, Control.ClientRectangle, null); 67if (!AccessibilityImprovements.Level2 || !String.IsNullOrEmpty(Control.Text)) { 78if (Control.Appearance == Appearance.Button) { 79ButtonPopupAdapter adapter = new ButtonPopupAdapter(Control); 80adapter.PaintDown(e, Control.CheckState); 88PaintButtonBackground(e, Control.ClientRectangle, null); 104return new ButtonPopupAdapter(Control);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (14)
23if (Control.Appearance == Appearance.Button) { 24 ButtonAdapter.PaintUp(e, Control.CheckState); 29PaintButtonBackground(e, Control.ClientRectangle, null); 38if (!AccessibilityImprovements.Level2 || !String.IsNullOrEmpty(Control.Text)) { 61if (Control.Appearance == Appearance.Button) { 62 ButtonAdapter.PaintDown(e, Control.CheckState); 70if (Control.Appearance == Appearance.Button) { 71 ButtonAdapter.PaintOver(e, Control.CheckState); 79if (Control.Appearance == Appearance.Button) { 80 ButtonStandardAdapter adapter = new ButtonStandardAdapter(Control); 103return new ButtonStandardAdapter(Control); 114layout.checkSize = CheckBoxRenderer.GetGlyphSize(g, CheckBoxRenderer.ConvertFromButtonState(GetState(), true, Control.MouseIsOver), Control.HandleInternal).Width; 120layout.checkSize = Control.LogicalToDeviceUnits(layout.checkSize);