39 references to FlatAppearance
System.Windows.Forms (39)
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (39)
27rect.Inflate(-Control.FlatAppearance.BorderSize,-Control.FlatAppearance.BorderSize); 32bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 36!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked), 38Control.FlatAppearance.BorderSize).Layout(); 42if (!Control.FlatAppearance.BorderColor.IsEmpty) { 43colors.windowFrame = Control.FlatAppearance.BorderColor; 53if (!Control.FlatAppearance.CheckedBackColor.IsEmpty) { 56backColor = Control.FlatAppearance.CheckedBackColor; 59backColor = MixedColor(Control.FlatAppearance.CheckedBackColor, colors.buttonFace); 88if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 94if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 95DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 114bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 118!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.HighContrast ? state != CheckState.Indeterminate : state == CheckState.Unchecked), 120Control.FlatAppearance.BorderSize).Layout(); 123if (!Control.FlatAppearance.BorderColor.IsEmpty) { 124colors.windowFrame = Control.FlatAppearance.BorderColor; 134if (!Control.FlatAppearance.MouseDownBackColor.IsEmpty) { 135backColor = Control.FlatAppearance.MouseDownBackColor; 162if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 168if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 169DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 192bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 196!Control.FlatAppearance.CheckedBackColor.IsEmpty || state == CheckState.Unchecked, 198Control.FlatAppearance.BorderSize).Layout(); 202if (!Control.FlatAppearance.BorderColor.IsEmpty) { 203colors.windowFrame = Control.FlatAppearance.BorderColor; 213if (!Control.FlatAppearance.MouseOverBackColor.IsEmpty) { 214backColor = Control.FlatAppearance.MouseOverBackColor; 216else if (!Control.FlatAppearance.CheckedBackColor.IsEmpty) { 218backColor = MixedColor(Control.FlatAppearance.CheckedBackColor, colors.lowButtonFace); 246if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 252if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 253DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 272LayoutOptions layout = PaintFlatLayout(e, /* up = */ false, /* check = */ true, Control.FlatAppearance.BorderSize);