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