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); 80TextFormatFlags textFormatFlags = GetTextFormatFlags(Control); 81Size textSize = MeasureText(Control, textFormatFlags); 82Rectangle contentBounds = ToggleSwitchMetrics.GetContentBounds(Control); 84Control, 104if (Control.Focused && ShowFocusCues) 106Rectangle focusBounds = Rectangle.Inflate(Control.ClientRectangle, -1, -1); 110Control.ForeColor, 111Control.BackColor); 237Control.Text, 238Control.Font, 262=> Control.Enabled 263? Control.ForeColor 265Control.ForeColor, 266Control.BackColor); 280Color backgroundColor = Control.Enabled 287Color borderColor = Control.Enabled 292float focus = Control.Enabled && !highContrast ? _focusCurrent : 0f; 294Color circleColor = Control.Enabled 305Control.Enabled ? _hoverCurrent : 0f); 410if (Control.BackgroundImage is null && !Control.BackColor.HasTransparency()) 412graphics.Clear(Control.BackColor); 417clipRectangle.Intersect(Control.ClientRectangle); 424Control.PaintBackground(paintEventArgs, clipRectangle); 433private bool IsChecked => Control switch 440private ContentAlignment RtlTranslatedCheckAlign => Control switch 447private bool ShowFocusCues => Control switch 454private bool MouseIsOver => Control switch
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (1)
152Control.LogicalToDeviceUnits(flatStyle == FlatStyle.Popup ? 2 : 1));