76 references to Button
System.Windows.Forms (13)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (1)
17
private static readonly VisualStyleElement s_buttonElement = VisualStyleElement.
Button
.PushButton.Normal;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (3)
17
private static readonly VisualStyleElement s_checkBoxElement = VisualStyleElement.
Button
.CheckBox.UncheckedNormal;
348
VisualStyleElement.
Button
.CheckBox.HighContrastDisabledPart))
350
part = VisualStyleElement.
Button
.CheckBox.HighContrastDisabledPart;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (3)
18
private static readonly VisualStyleElement s_radioElement = VisualStyleElement.
Button
.RadioButton.UncheckedNormal;
324
&& VisualStyleRenderer.IsCombinationDefined(s_radioElement.ClassName, VisualStyleElement.
Button
.RadioButton.HighContrastDisabledPart))
326
part = VisualStyleElement.
Button
.RadioButton.HighContrastDisabledPart;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
20
private static readonly VisualStyleElement s_buttonElement = VisualStyleElement.
Button
.PushButton.Normal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
23
private static readonly VisualStyleElement s_checkBoxElement = VisualStyleElement.
Button
.CheckBox.UncheckedNormal;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (3)
17
private static readonly VisualStyleElement s_groupBoxElement = VisualStyleElement.
Button
.GroupBox.Normal;
365
VisualStyleElement.
Button
.GroupBox.HighContrastDisabledPart))
367
part = VisualStyleElement.
Button
.GroupBox.HighContrastDisabledPart;
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (1)
189
? SetParameters(VisualStyleElement.
Button
.PushButton.Normal).GetColor(ColorProperty.AccentColorHint)
System.Windows.Forms.Tests (63)
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (28)
36
yield return new object[] { I(() => VisualStyleElement.
Button
.PushButton.Normal), "BUTTON", 1, 1 };
37
yield return new object[] { I(() => VisualStyleElement.
Button
.PushButton.Hot), "BUTTON", 1, 2 };
38
yield return new object[] { I(() => VisualStyleElement.
Button
.PushButton.Pressed), "BUTTON", 1, 3 };
39
yield return new object[] { I(() => VisualStyleElement.
Button
.PushButton.Disabled), "BUTTON", 1, 4 };
40
yield return new object[] { I(() => VisualStyleElement.
Button
.PushButton.Default), "BUTTON", 1, 5 };
42
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.UncheckedNormal), "BUTTON", 2, 1 };
43
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.UncheckedHot), "BUTTON", 2, 2 };
44
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.UncheckedPressed), "BUTTON", 2, 3 };
45
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.UncheckedDisabled), "BUTTON", 2, 4 };
46
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.CheckedNormal), "BUTTON", 2, 5 };
47
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.CheckedHot), "BUTTON", 2, 6 };
48
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.CheckedPressed), "BUTTON", 2, 7 };
49
yield return new object[] { I(() => VisualStyleElement.
Button
.RadioButton.CheckedDisabled), "BUTTON", 2, 8 };
51
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.UncheckedNormal), "BUTTON", 3, 1 };
52
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.UncheckedHot), "BUTTON", 3, 2 };
53
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.UncheckedPressed), "BUTTON", 3, 3 };
54
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.UncheckedDisabled), "BUTTON", 3, 4 };
55
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.CheckedNormal), "BUTTON", 3, 5 };
56
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.CheckedHot), "BUTTON", 3, 6 };
57
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.CheckedPressed), "BUTTON", 3, 7 };
58
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.CheckedDisabled), "BUTTON", 3, 8 };
59
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.MixedNormal), "BUTTON", 3, 9 };
60
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.MixedHot), "BUTTON", 3, 10 };
61
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.MixedPressed), "BUTTON", 3, 11 };
62
yield return new object[] { I(() => VisualStyleElement.
Button
.CheckBox.MixedDisabled), "BUTTON", 3, 12 };
64
yield return new object[] { I(() => VisualStyleElement.
Button
.GroupBox.Normal), "BUTTON", 4, 1 };
65
yield return new object[] { I(() => VisualStyleElement.
Button
.GroupBox.Disabled), "BUTTON", 4, 2 };
67
yield return new object[] { I(() => VisualStyleElement.
Button
.UserButton.Normal), "BUTTON", 5, 0 };
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (35)
14
yield return new object[] { VisualStyleElement.
Button
.PushButton.Hot };
15
yield return new object[] { VisualStyleElement.
Button
.PushButton.Normal };
16
yield return new object[] { VisualStyleElement.
Button
.RadioButton.CheckedHot };
17
yield return new object[] { VisualStyleElement.
Button
.RadioButton.CheckedNormal };
93
yield return new object[] { VisualStyleElement.
Button
.PushButton.Hot, true };
94
yield return new object[] { VisualStyleElement.
Button
.PushButton.Normal, true };
95
yield return new object[] { VisualStyleElement.
Button
.RadioButton.CheckedHot, true };
96
yield return new object[] { VisualStyleElement.
Button
.RadioButton.CheckedNormal, true };
135
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
169
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
179
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
204
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
214
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
222
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
232
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
242
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
266
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
279
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
292
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
302
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
312
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
324
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
351
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
378
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
391
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
417
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
448
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
479
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
489
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
501
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Normal);
515
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Hot);
528
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Hot);
536
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Hot);
548
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Hot);
556
VisualStyleRenderer renderer = new(VisualStyleElement.
Button
.PushButton.Hot);