62 references to FlatAppearance
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
532
button.
FlatAppearance
.BorderSize = 0;
System.Windows.Forms (39)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (39)
17
rect.Inflate(-Control.
FlatAppearance
.BorderSize, -Control.
FlatAppearance
.BorderSize);
23
bool hasCustomBorder = Control.
FlatAppearance
.BorderSize != BorderSize || !Control.
FlatAppearance
.BorderColor.IsEmpty;
27
up: !Control.
FlatAppearance
.CheckedBackColor.IsEmpty
30
Control.
FlatAppearance
.BorderSize).Layout();
33
if (!Control.
FlatAppearance
.BorderColor.IsEmpty)
35
colors.WindowFrame = Control.
FlatAppearance
.BorderColor;
42
if (!Control.
FlatAppearance
.CheckedBackColor.IsEmpty)
47
backColor = Control.
FlatAppearance
.CheckedBackColor;
50
backColor = Control.
FlatAppearance
.CheckedBackColor.MixColor(colors.ButtonFace);
82
if (!(Control.IsDefault && Control.Focused && (Control.
FlatAppearance
.BorderSize == 0)))
90
if (Control.
FlatAppearance
.BorderSize != BorderSize)
92
DrawFlatBorderWithSize(e, r, colors.WindowFrame, Control.
FlatAppearance
.BorderSize);
116
bool hasCustomBorder = (Control.
FlatAppearance
.BorderSize != BorderSize || !Control.
FlatAppearance
.BorderColor.IsEmpty);
120
!Control.
FlatAppearance
.CheckedBackColor.IsEmpty
123
Control.
FlatAppearance
.BorderSize).Layout();
126
if (!Control.
FlatAppearance
.BorderColor.IsEmpty)
128
colors.WindowFrame = Control.
FlatAppearance
.BorderColor;
135
if (!Control.
FlatAppearance
.MouseDownBackColor.IsEmpty)
137
backColor = Control.
FlatAppearance
.MouseDownBackColor;
170
if (!(Control.IsDefault && Control.Focused && (Control.
FlatAppearance
.BorderSize == 0)))
178
if (Control.
FlatAppearance
.BorderSize != BorderSize)
180
DrawFlatBorderWithSize(e, r, colors.WindowFrame, Control.
FlatAppearance
.BorderSize);
210
bool hasCustomBorder = Control.
FlatAppearance
.BorderSize != BorderSize || !Control.
FlatAppearance
.BorderColor.IsEmpty;
214
up: !Control.
FlatAppearance
.CheckedBackColor.IsEmpty || state == CheckState.Unchecked,
216
Control.
FlatAppearance
.BorderSize).Layout();
219
if (!Control.
FlatAppearance
.BorderColor.IsEmpty)
221
colors.WindowFrame = Control.
FlatAppearance
.BorderColor;
227
if (!Control.
FlatAppearance
.MouseOverBackColor.IsEmpty)
229
backColor = Control.
FlatAppearance
.MouseOverBackColor;
231
else if (!Control.
FlatAppearance
.CheckedBackColor.IsEmpty)
234
? Control.
FlatAppearance
.CheckedBackColor.MixColor(colors.LowButtonFace)
264
if (!(Control.IsDefault && Control.Focused && (Control.
FlatAppearance
.BorderSize == 0)))
272
if (Control.
FlatAppearance
.BorderSize != BorderSize)
274
DrawFlatBorderWithSize(e, r, colors.WindowFrame, Control.
FlatAppearance
.BorderSize);
293
PaintFlatLayout(up: false, check: true, Control.
FlatAppearance
.BorderSize);
System.Windows.Forms.Tests (22)
System\Windows\Forms\AbstractButtonBaseTests.cs (8)
17
control.Invoking(y => y.
FlatAppearance
.BorderColor = Color.Transparent)
22
control.Invoking(y => y.
FlatAppearance
.BorderSize = borderSize)
27
control.
FlatAppearance
.BorderSize = borderSize;
28
control.
FlatAppearance
.BorderSize.Should().Be(borderSize);
40
control.
FlatAppearance
.CheckedBackColor = expectedColor;
41
control.
FlatAppearance
.BorderColor = expectedColor;
44
control.
FlatAppearance
.BorderColor.Should().Be(expectedColor);
45
control.
FlatAppearance
.CheckedBackColor.Should().Be(expectedColor);
System\Windows\Forms\ButtonBaseTests.cs (5)
64
Assert.NotNull(control.
FlatAppearance
);
65
Assert.Same(control.
FlatAppearance
, control.
FlatAppearance
);
1031
FlatButtonAppearance appearance = control.
FlatAppearance
;
1037
Assert.Same(appearance, control.
FlatAppearance
);
System\Windows\Forms\ButtonTests.cs (3)
67
Assert.NotNull(control.
FlatAppearance
);
68
Assert.Same(control.
FlatAppearance
, control.
FlatAppearance
);
System\Windows\Forms\CheckBoxTests.cs (3)
68
Assert.NotNull(control.
FlatAppearance
);
69
Assert.Same(control.
FlatAppearance
, control.
FlatAppearance
);
System\Windows\Forms\RadioButtonTests.cs (3)
67
Assert.NotNull(control.
FlatAppearance
);
68
Assert.Same(control.
FlatAppearance
, control.
FlatAppearance
);