91 references to Control
System.Windows.Forms (91)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (12)
35if (!Control.Enabled && disabledColors) 63if (!Control.Enabled) 135if (!Control.Checked) 140if (!Control.Enabled && disabledColors) 172if (Control.Checked) 181if (!Control.Enabled) 186if (Control.MouseIsDown) 210RadioButtonRenderer.ConvertFromButtonState(style, Control.MouseIsOver), 211Control.HWNDInternal); 221if (string.IsNullOrEmpty(Control.Text)) 227layout.Focus = Control.AutoSize ? layout.CheckBounds : layout.Field; 234layout.CheckAlign = Control.CheckAlign;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (14)
14if (Control.Appearance == Appearance.Button) 16ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreateFlatAdapter(Control); 17adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 22if (Control.Enabled) 34if (Control.Appearance == Appearance.Button) 36ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreateFlatAdapter(Control); 37adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 42if (Control.Enabled) 54if (Control.Appearance == Appearance.Button) 56ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreateFlatAdapter(Control); 57adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 62if (Control.Enabled) 75PaintButtonBackground(e, Control.ClientRectangle, background: null); 83protected override ButtonBaseAdapter CreateButtonAdapter() => DarkModeAdapterFactory.CreateFlatAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (41)
22if (Control.Appearance == Appearance.Button) 24ButtonAdapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 33if (Control.Appearance == Appearance.Button) 35ButtonAdapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 44if (Control.Appearance == Appearance.Button) 46ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 56FlatStyle.Flat => DarkModeAdapterFactory.CreateFlatAdapter(Control), 57FlatStyle.Popup => DarkModeAdapterFactory.CreatePopupAdapter(Control), 58_ => DarkModeAdapterFactory.CreateStandardAdapter(Control) 64layout.CheckPaddingSize = Control.LogicalToDeviceUnits(2); 66Control.LogicalToDeviceUnits(13), 67(int)(Control.Font.Height * 0.9f)); 83bool useExplicitBackColor = Control.ShouldSerializeBackColor() || !Control.UseVisualStyleBackColor; 84bool hasTransparentBackColor = Control.BackColor.HasTransparency(); 88using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 89graphics.FillRectangle(backBrush, Control.ClientRectangle); 94Control, 96Control.ClientRectangle, 97Control.BackColor); 99if (useExplicitBackColor && hasTransparentBackColor && Control.BackColor.A > 0) 101using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 102graphics.FillRectangle(backBrush, Control.ClientRectangle); 110Color? customBorderColor = Control.FlatAppearance.BorderColor.IsEmpty 112: Control.FlatAppearance.BorderColor; 114Control.RadioGlyphRenderer.NotifyCheckedChanged(Control.Checked); 115Control.RadioGlyphRenderer.DrawGlyph( 119Control.Enabled, 120Control.MouseIsOver, 121Control.Focused && Control.ShowFocusCues, 127Color preferredTextColor = Control.ShouldSerializeForeColor() || Control.ForeColor != Forms.Control.DefaultForeColor 128? Control.ForeColor 132Color disabledTextBackColor = Control.ShouldSerializeBackColor() 133&& Control.BackColor.A == byte.MaxValue 134? Control.BackColor 135: Control.Parent?.BackColor ?? Control.BackColor; 137Color textColor = Control.Enabled
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (15)
12if (Control.Appearance == Appearance.Button) 14ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreatePopupAdapter(Control); 15adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 22PaintButtonBackground(e, Control.ClientRectangle, background: null); 41if (Control.Appearance == Appearance.Button) 43ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreatePopupAdapter(Control); 44adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 51PaintButtonBackground(e, Control.ClientRectangle, background: null); 66if (Control.Appearance == Appearance.Button) 68ButtonBaseAdapter adapter = DarkModeAdapterFactory.CreatePopupAdapter(Control); 69adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 76PaintButtonBackground(e, Control.ClientRectangle, background: null); 88protected override ButtonBaseAdapter CreateButtonAdapter() => DarkModeAdapterFactory.CreatePopupAdapter(Control); 94if (!Control.MouseIsDown && !Control.MouseIsOver)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (9)
12if (Control.Appearance == Appearance.Button) 14ButtonAdapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 20PaintButtonBackground(e, Control.ClientRectangle, background: null); 31if (Control.Appearance == Appearance.Button) 33ButtonAdapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 43if (Control.Appearance == Appearance.Button) 45ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 53protected override ButtonBaseAdapter CreateButtonAdapter() => DarkModeAdapterFactory.CreateStandardAdapter(Control); 63ButtonBase b = Control;