62 references to FlatAppearance
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
527button.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)
17control.Invoking(y => y.FlatAppearance.BorderColor = Color.Transparent) 22control.Invoking(y => y.FlatAppearance.BorderSize = borderSize) 27control.FlatAppearance.BorderSize = borderSize; 28control.FlatAppearance.BorderSize.Should().Be(borderSize); 40control.FlatAppearance.CheckedBackColor = expectedColor; 41control.FlatAppearance.BorderColor = expectedColor; 44control.FlatAppearance.BorderColor.Should().Be(expectedColor); 45control.FlatAppearance.CheckedBackColor.Should().Be(expectedColor);
System\Windows\Forms\ButtonBaseTests.cs (5)
64Assert.NotNull(control.FlatAppearance); 65Assert.Same(control.FlatAppearance, control.FlatAppearance); 1031FlatButtonAppearance appearance = control.FlatAppearance; 1037Assert.Same(appearance, control.FlatAppearance);
System\Windows\Forms\ButtonTests.cs (3)
67Assert.NotNull(control.FlatAppearance); 68Assert.Same(control.FlatAppearance, control.FlatAppearance);
System\Windows\Forms\CheckBoxTests.cs (3)
68Assert.NotNull(control.FlatAppearance); 69Assert.Same(control.FlatAppearance, control.FlatAppearance);
System\Windows\Forms\RadioButtonTests.cs (3)
67Assert.NotNull(control.FlatAppearance); 68Assert.Same(control.FlatAppearance, control.FlatAppearance);