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