40 references to FlatAppearance
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
523button.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; 226Color backColor = !Control.FlatAppearance.MouseOverBackColor.IsEmpty 227? Control.FlatAppearance.MouseOverBackColor 228: !Control.FlatAppearance.CheckedBackColor.IsEmpty 230? Control.FlatAppearance.CheckedBackColor.MixColor(colors.LowButtonFace) 259if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) 267if (Control.FlatAppearance.BorderSize != BorderSize) 269DrawFlatBorderWithSize(e, r, colors.WindowFrame, Control.FlatAppearance.BorderSize); 288PaintFlatLayout(up: false, check: true, Control.FlatAppearance.BorderSize);