34 references to Control
System.Windows.Forms (34)
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 (30)
77focused: Control.Focused && ShowFocusCues); 79ToggleSwitchMetrics metrics = ToggleSwitchMetrics.Create(Control); 80Size textSize = TextRenderer.MeasureText(Control.Text, Control.Font); 81Rectangle contentBounds = ToggleSwitchMetrics.GetContentBounds(Control); 86Control, 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); 334if (Control.BackgroundImage is null && !Control.BackColor.HasTransparency()) 336graphics.Clear(Control.BackColor); 341clipRectangle.Intersect(Control.ClientRectangle); 348Control.PaintBackground(paintEventArgs, clipRectangle); 357private bool IsChecked => Control switch 364private ContentAlignment RtlTranslatedCheckAlign => Control switch 371private bool ShowFocusCues => Control switch 378private bool MouseIsOver => Control switch
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (1)
152Control.LogicalToDeviceUnits(flatStyle == FlatStyle.Popup ? 2 : 1));