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