31 references to Control
System.Windows.Forms (31)
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
34EnsureInitialized(Control.Focused ? 1f : 0f);
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (1)
45private Forms.ButtonBase Button => (Forms.ButtonBase)Control;
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
144Control.LogicalToDeviceUnits(flatStyle == FlatStyle.Popup ? 2 : 1));
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (26)
77focused: Control.Focused && ShowFocusCues); 79ToggleSwitchMetrics metrics = ToggleSwitchMetrics.Create(Control); 80Size textSize = TextRenderer.MeasureText(Control.Text, Control.Font); 81Rectangle contentBounds = ToggleSwitchMetrics.GetContentBounds(Control); 86Control, 91graphics.Clear(Control.BackColor); 110if (Control.Focused && ShowFocusCues) 112Rectangle focusBounds = Rectangle.Inflate(Control.ClientRectangle, -1, -1); 116Control.ForeColor, 117Control.BackColor); 179Control.Text, 180Control.Font, 186=> Control.Enabled 187? Control.ForeColor 189Control.ForeColor, 190Control.BackColor); 204Color backgroundColor = Control.Enabled 211Color borderColor = Control.Enabled 216float focus = Control.Enabled && !highContrast ? _focusCurrent : 0f; 218Color circleColor = Control.Enabled 229Control.Enabled ? _hoverCurrent : 0f); 338private bool IsChecked => Control switch 345private ContentAlignment RtlTranslatedCheckAlign => Control switch 352private bool ShowFocusCues => Control switch 359private bool MouseIsOver => Control switch
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
143Control.LogicalToDeviceUnits(flatStyle == FlatStyle.Popup ? 2 : 1)); 162int outlineThickness = Math.Max(1, Control.LogicalToDeviceUnits(1));