203 references to Standard
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
812button.FlatStyle = FlatStyle.Standard;
System.Windows.Forms (39)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (4)
20private FlatStyle _flatStyle = FlatStyle.Standard; 338[DefaultValue(FlatStyle.Standard)] 608if (FlatStyle == FlatStyle.Standard) 972case FlatStyle.Standard:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
160if (Application.RenderWithVisualStyles && Control.FlatStyle != FlatStyle.Standard)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
300else if (FlatStyle == FlatStyle.Standard)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
274else if (FlatStyle == FlatStyle.Standard)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
52private FlatStyle _flatStyle = FlatStyle.Standard; 497[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
57[DefaultValue(FlatStyle.Standard)] 60get => Properties.GetValueOrDefault(s_propButtonCellFlatStyle, FlatStyle.Standard); 66Properties.AddOrRemoveValue(s_propButtonCellFlatStyle, value, defaultValue: FlatStyle.Standard); 717case FlatStyle.Standard: 888if (FlatStyle is FlatStyle.System or FlatStyle.Standard) 978(FlatStyle == FlatStyle.System || FlatStyle == FlatStyle.Standard))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
54[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (7)
232[DefaultValue(FlatStyle.Standard)] 235get => Properties.GetValueOrDefault(s_propFlatStyle, FlatStyle.Standard); 239FlatStyle previous = Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard); 254Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard); 659case FlatStyle.Standard: 1165case FlatStyle.Standard: 1244if (FlatStyle is FlatStyle.System or FlatStyle.Standard)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
101[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
343[DefaultValue(FlatStyle.Standard)] 346get => Properties.GetValueOrDefault(s_propComboBoxCellFlatStyle, FlatStyle.Standard); 351FlatStyle originalValue = Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard); 364Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard); 1719(FlatStyle == FlatStyle.Standard || FlatStyle == FlatStyle.System) && 1741if ((FlatStyle == FlatStyle.Standard || FlatStyle == FlatStyle.System) && DataGridView.ApplyVisualStylesToInnerCells)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
308[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
23private FlatStyle _flatStyle = FlatStyle.Standard; 172[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Controls\Labels\Label.cs (2)
83_labelState[s_stateFlatStyle] = (int)FlatStyle.Standard; 321[DefaultValue(FlatStyle.Standard)]
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (4)
263_continueButton.FlatStyle = FlatStyle.Standard; 267_quitButton.FlatStyle = FlatStyle.Standard; 271_helpButton.FlatStyle = FlatStyle.Standard; 275_detailsButton.FlatStyle = FlatStyle.Standard;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (6)
48FlatStyle flatStyle = FlatStyle.Standard; 109if (flatStyle is FlatStyle.Standard or FlatStyle.System) 120if (flatStyle == FlatStyle.Standard) 141if (flatStyle == FlatStyle.Standard) 176if (flatStyle is FlatStyle.Standard or FlatStyle.Flat or FlatStyle.Popup) 201if (flatStyle is FlatStyle.Standard or FlatStyle.Popup)
System.Windows.Forms.Tests (153)
System\Windows\Forms\AbstractButtonBaseTests.cs (4)
64&& (flatStyle != FlatStyle.Standard 78if (control.FlatStyle == FlatStyle.Standard) 85if (control.FlatStyle != FlatStyle.Standard) 90else if (control.FlatStyle != FlatStyle.Standard)
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (4)
33[InlineData(FlatStyle.Standard, true, true, AccessibleStates.Focusable | AccessibleStates.Pressed)] 34[InlineData(FlatStyle.Standard, false, true, AccessibleStates.None)] 35[InlineData(FlatStyle.Standard, true, false, AccessibleStates.Focusable)] 36[InlineData(FlatStyle.Standard, false, false, AccessibleStates.None)]
System\Windows\Forms\ButtonBaseTests.cs (42)
66Assert.Equal(FlatStyle.Standard, control.FlatStyle); 150[InlineData(FlatStyle.Standard, true, 0x56010000)] 151[InlineData(FlatStyle.Standard, false, 0x56010000)] 180foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1124yield return new object[] { true, FlatStyle.Standard, 0 }; 1129yield return new object[] { false, FlatStyle.Standard, 0 }; 1189yield return new object[] { autoSize, FlatStyle.Standard, 0, 0 }; 1236yield return new object[] { FlatStyle.Flat, FlatStyle.Standard, 1, 0 }; 1241yield return new object[] { FlatStyle.Popup, FlatStyle.Standard, 1, 0 }; 1244yield return new object[] { FlatStyle.Standard, FlatStyle.Flat, 1, 0 }; 1245yield return new object[] { FlatStyle.Standard, FlatStyle.Popup, 1, 0 }; 1246yield return new object[] { FlatStyle.Standard, FlatStyle.Standard, 0, 0 }; 1247yield return new object[] { FlatStyle.Standard, FlatStyle.System, 1, 1 }; 1251yield return new object[] { FlatStyle.System, FlatStyle.Standard, 1, 1 }; 1295yield return new object[] { true, FlatStyle.Standard, 0, 0, 0 }; 1300yield return new object[] { false, FlatStyle.Standard, 0, 0, 0 }; 2743yield return new object[] { FlatStyle.Standard, true, 1, 0, 2, 0 }; 2748yield return new object[] { FlatStyle.Standard, false, 0, 0, 1, 0 }; 3367yield return new object[] { autoSize, FlatStyle.Standard, value, expectedCallCount, 0 }; 3417yield return new object[] { true, FlatStyle.Standard, value, expectedCallCount, expectedCallCount, 0 }; 3422yield return new object[] { false, FlatStyle.Standard, value, 0, expectedCallCount, 0 }; 5692[InlineData(FlatStyle.Standard, Keys.Cancel, 0)] 5693[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5694[InlineData(FlatStyle.Standard, Keys.Space, 0)] 5716[InlineData(FlatStyle.Standard, Keys.Cancel, 0)] 5717[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5718[InlineData(FlatStyle.Standard, Keys.Space, 0)] 5971[InlineData(FlatStyle.Standard, Keys.Cancel, 0)] 5972[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5973[InlineData(FlatStyle.Standard, Keys.Space, 0)] 5995[InlineData(FlatStyle.Standard, Keys.Cancel, 0)] 5996[InlineData(FlatStyle.Standard, Keys.Enter, 0)] 5997[InlineData(FlatStyle.Standard, Keys.Space, 0)] 7783[InlineData(FlatStyle.Standard, 1)] 8128[InlineData(FlatStyle.Standard, 1)] 8633[InlineData(FlatStyle.Standard, 2)] 9105yield return new object[] { FlatStyle.Standard, IntPtr.Zero, IntPtr.Zero, 0 }; 9106yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9107yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9108yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9189yield return new object[] { FlatStyle.Standard, (IntPtr)250 };
System\Windows\Forms\ButtonTests.cs (41)
69Assert.Equal(FlatStyle.Standard, control.FlatStyle); 172[InlineData(FlatStyle.Standard, true, 0x5601000B)] 173[InlineData(FlatStyle.Standard, false, 0x5601000B)] 202foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1039[InlineData(true, FlatStyle.Standard, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)] 1043[InlineData(false, FlatStyle.Standard, AccessibleStates.None, AccessibleRole.None)] 1402yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1403yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) }; 1404yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) }; 1405yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) }; 1406yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) }; 1407yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) }; 1408yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) }; 1409yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) }; 1410yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) }; 1411yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) }; 1412yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) }; 1413yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(6, 6) }; 1415foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1480yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1481yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) }; 1482yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) }; 1483yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) }; 1484yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) }; 1485yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) }; 1486yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) }; 1487yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) }; 1488yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) }; 1489yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) }; 1490yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) }; 1491yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) }; 1493foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1559foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Popup, FlatStyle.Standard }) 1725FlatStyle = FlatStyle.Standard, 1749FlatStyle = FlatStyle.Standard, 1840yield return new object[] { FlatStyle.Standard, true, 1, 0, 2, 0 }; 1845yield return new object[] { FlatStyle.Standard, false, 0, 0, 1, 0 }; 3570yield return new object[] { FlatStyle.Standard, IntPtr.Zero, (IntPtr)250, 1 }; 3571yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3572yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3573yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (3)
70Assert.Equal(FlatStyle.Standard, control.FlatStyle); 776yield return new object[] { Appearance.Button, FlatStyle.Standard }; 780yield return new object[] { Appearance.Normal, FlatStyle.Standard };
System\Windows\Forms\ComboBoxTests.cs (17)
77Assert.Equal(FlatStyle.Standard, control.FlatStyle); 1775yield return new object[] { FlatStyle.Standard, false, true, allPaintingInWmPaint, false, 0 }; 1779yield return new object[] { FlatStyle.Standard, false, false, allPaintingInWmPaint, false, 0 }; 1784yield return new object[] { FlatStyle.Standard, true, true, allPaintingInWmPaint, true, 0 }; 1788yield return new object[] { FlatStyle.Standard, true, false, allPaintingInWmPaint, true, 1 }; 1852yield return new object[] { FlatStyle.Standard, false, true, allPaintingInWmPaint, 0 }; 1856yield return new object[] { FlatStyle.Standard, false, false, allPaintingInWmPaint, 0 }; 1861yield return new object[] { FlatStyle.Standard, true, true, allPaintingInWmPaint, 0 }; 1865yield return new object[] { FlatStyle.Standard, true, false, allPaintingInWmPaint, 1 }; 1943yield return new object[] { FlatStyle.Standard, false, true, allPaintingInWmPaint, false, 0 }; 1947yield return new object[] { FlatStyle.Standard, false, false, allPaintingInWmPaint, false, 0 }; 1952yield return new object[] { FlatStyle.Standard, true, true, allPaintingInWmPaint, false, 1 }; 1956yield return new object[] { FlatStyle.Standard, true, false, allPaintingInWmPaint, false, 1 }; 2042yield return new object[] { FlatStyle.Standard, false, true, allPaintingInWmPaint, 0 }; 2046yield return new object[] { FlatStyle.Standard, false, false, allPaintingInWmPaint, 0 }; 2051yield return new object[] { FlatStyle.Standard, true, true, allPaintingInWmPaint, 1 }; 2055yield return new object[] { FlatStyle.Standard, true, false, allPaintingInWmPaint, 1 };
System\Windows\Forms\GroupBoxTests.cs (31)
62Assert.Equal(FlatStyle.Standard, control.FlatStyle); 129[InlineData(FlatStyle.Standard, null, 0x56000000)] 620[InlineData(FlatStyle.Standard, false, true, false)] 650[InlineData(FlatStyle.Flat, FlatStyle.Standard, true, true, true)] 654[InlineData(FlatStyle.Popup, FlatStyle.Standard, true, true, true)] 656[InlineData(FlatStyle.Standard, FlatStyle.Flat, true, true, true)] 657[InlineData(FlatStyle.Standard, FlatStyle.Popup, true, true, true)] 658[InlineData(FlatStyle.Standard, FlatStyle.Standard, false, true, false)] 659[InlineData(FlatStyle.Standard, FlatStyle.System, true, false, false)] 662[InlineData(FlatStyle.System, FlatStyle.Standard, true, true, true)] 695[InlineData(FlatStyle.Standard, false, true, false, 0, 0)] 743[InlineData(FlatStyle.Standard, false, true, false, 0, 0)] 797[InlineData(FlatStyle.Flat, FlatStyle.Standard, true, true, true, 1, 0)] 801[InlineData(FlatStyle.Popup, FlatStyle.Standard, true, true, true, 1, 0)] 803[InlineData(FlatStyle.Standard, FlatStyle.Flat, true, true, true, 1, 0)] 804[InlineData(FlatStyle.Standard, FlatStyle.Popup, true, true, true, 1, 0)] 805[InlineData(FlatStyle.Standard, FlatStyle.Standard, false, true, false, 0, 0)] 806[InlineData(FlatStyle.Standard, FlatStyle.System, true, false, false, 0, 1)] 809[InlineData(FlatStyle.System, FlatStyle.Standard, true, true, true, 0, 1)] 860[InlineData(FlatStyle.Flat, FlatStyle.Standard, true, true, true, 1, 0)] 864[InlineData(FlatStyle.Popup, FlatStyle.Standard, true, true, true, 1, 0)] 866[InlineData(FlatStyle.Standard, FlatStyle.Flat, true, true, true, 1, 0)] 867[InlineData(FlatStyle.Standard, FlatStyle.Popup, true, true, true, 1, 0)] 868[InlineData(FlatStyle.Standard, FlatStyle.Standard, false, true, false, 0, 0)] 869[InlineData(FlatStyle.Standard, FlatStyle.System, true, false, false, 0, 1)] 872[InlineData(FlatStyle.System, FlatStyle.Standard, true, true, true, 0, 1)] 2171[InlineData(FlatStyle.Standard)] 2216[InlineData(FlatStyle.Standard)]
System\Windows\Forms\LabelTests.cs (2)
62Assert.Equal(FlatStyle.Standard, control.FlatStyle); 352[InlineData(FlatStyle.Standard)]
System\Windows\Forms\RadioButtonTests.cs (8)
69Assert.Equal(FlatStyle.Standard, control.FlatStyle); 345yield return new object[] { autoSize, FlatStyle.Standard, value, expectedCallCount, 0 }; 487[InlineData(FlatStyle.Standard, "", true, AccessibleStates.Focusable)] 491[InlineData(FlatStyle.Standard, "Description", true, AccessibleStates.Focusable)] 495[InlineData(FlatStyle.Standard, "", false, AccessibleStates.None)] 499[InlineData(FlatStyle.Standard, "Description", false, AccessibleStates.None)] 1656[InlineData(Appearance.Button, FlatStyle.Standard)] 1660[InlineData(Appearance.Normal, FlatStyle.Standard)]
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
174[InlineData(FlatStyle.Standard)]
WinFormsControlsTest (4)
Buttons.cs (1)
15FlatStyle.Standard,
CustomComCtl32Button.cs (3)
25FlatStyle = FlatStyle.Standard, 35FlatStyle = FlatStyle.Standard, 45FlatStyle = FlatStyle.Standard,