204 references to Standard
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
807
button.FlatStyle = FlatStyle.
Standard
;
System.Windows.Forms (39)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (4)
20
private FlatStyle _flatStyle = FlatStyle.
Standard
;
338
[DefaultValue(FlatStyle.
Standard
)]
608
if (FlatStyle == FlatStyle.
Standard
)
972
case FlatStyle.
Standard
:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
160
if (Application.RenderWithVisualStyles && Control.FlatStyle != FlatStyle.
Standard
)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
300
else if (FlatStyle == FlatStyle.
Standard
)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
274
else if (FlatStyle == FlatStyle.
Standard
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
52
private FlatStyle _flatStyle = FlatStyle.
Standard
;
497
[DefaultValue(FlatStyle.
Standard
)]
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
57
[DefaultValue(FlatStyle.
Standard
)]
60
get => Properties.GetValueOrDefault(s_propButtonCellFlatStyle, FlatStyle.
Standard
);
66
Properties.AddOrRemoveValue(s_propButtonCellFlatStyle, value, defaultValue: FlatStyle.
Standard
);
717
case FlatStyle.
Standard
:
888
if (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
)]
235
get => Properties.GetValueOrDefault(s_propFlatStyle, FlatStyle.
Standard
);
239
FlatStyle previous = Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.
Standard
);
254
Properties.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.
Standard
);
659
case FlatStyle.
Standard
:
1166
case FlatStyle.
Standard
:
1245
if (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
)]
346
get => Properties.GetValueOrDefault(s_propComboBoxCellFlatStyle, FlatStyle.
Standard
);
351
FlatStyle originalValue = Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.
Standard
);
364
Properties.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.
Standard
);
1715
(FlatStyle == FlatStyle.
Standard
|| FlatStyle == FlatStyle.System) &&
1737
if ((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)
23
private 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)
271
_continueButton.FlatStyle = FlatStyle.
Standard
;
275
_quitButton.FlatStyle = FlatStyle.
Standard
;
279
_helpButton.FlatStyle = FlatStyle.
Standard
;
283
_detailsButton.FlatStyle = FlatStyle.
Standard
;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (6)
48
FlatStyle flatStyle = FlatStyle.
Standard
;
109
if (flatStyle is FlatStyle.
Standard
or FlatStyle.System)
120
if (flatStyle == FlatStyle.
Standard
)
141
if (flatStyle == FlatStyle.
Standard
)
176
if (flatStyle is FlatStyle.
Standard
or FlatStyle.Flat or FlatStyle.Popup)
201
if (flatStyle is FlatStyle.
Standard
or FlatStyle.Popup)
System.Windows.Forms.Tests (154)
LinkLabelTests.cs (1)
28
_linkLabel.FlatStyle.Should().Be(FlatStyle.
Standard
);
System\Windows\Forms\AbstractButtonBaseTests.cs (4)
64
&& (flatStyle != FlatStyle.
Standard
78
if (control.FlatStyle == FlatStyle.
Standard
)
85
if (control.FlatStyle != FlatStyle.
Standard
)
90
else 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)
66
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
150
[InlineData(FlatStyle.
Standard
, true, 0x56010000)]
151
[InlineData(FlatStyle.
Standard
, false, 0x56010000)]
180
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.
Standard
})
1124
yield return new object[] { true, FlatStyle.
Standard
, 0 };
1129
yield return new object[] { false, FlatStyle.
Standard
, 0 };
1189
yield return new object[] { autoSize, FlatStyle.
Standard
, 0, 0 };
1236
yield return new object[] { FlatStyle.Flat, FlatStyle.
Standard
, 1, 0 };
1241
yield return new object[] { FlatStyle.Popup, FlatStyle.
Standard
, 1, 0 };
1244
yield return new object[] { FlatStyle.
Standard
, FlatStyle.Flat, 1, 0 };
1245
yield return new object[] { FlatStyle.
Standard
, FlatStyle.Popup, 1, 0 };
1246
yield return new object[] { FlatStyle.
Standard
, FlatStyle.
Standard
, 0, 0 };
1247
yield return new object[] { FlatStyle.
Standard
, FlatStyle.System, 1, 1 };
1251
yield return new object[] { FlatStyle.System, FlatStyle.
Standard
, 1, 1 };
1295
yield return new object[] { true, FlatStyle.
Standard
, 0, 0, 0 };
1300
yield return new object[] { false, FlatStyle.
Standard
, 0, 0, 0 };
2743
yield return new object[] { FlatStyle.
Standard
, true, 1, 0, 2, 0 };
2748
yield return new object[] { FlatStyle.
Standard
, false, 0, 0, 1, 0 };
3367
yield return new object[] { autoSize, FlatStyle.
Standard
, value, expectedCallCount, 0 };
3417
yield return new object[] { true, FlatStyle.
Standard
, value, expectedCallCount, expectedCallCount, 0 };
3422
yield 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)]
9105
yield return new object[] { FlatStyle.
Standard
, IntPtr.Zero, IntPtr.Zero, 0 };
9106
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9107
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9108
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 };
9189
yield return new object[] { FlatStyle.
Standard
, (IntPtr)250 };
System\Windows\Forms\ButtonTests.cs (41)
69
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
172
[InlineData(FlatStyle.
Standard
, true, 0x5601000B)]
173
[InlineData(FlatStyle.
Standard
, false, 0x5601000B)]
202
foreach (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)]
1402
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) };
1403
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) };
1404
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) };
1405
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) };
1406
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) };
1407
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) };
1408
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) };
1409
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) };
1410
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) };
1411
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) };
1412
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) };
1413
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(6, 6) };
1415
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.
Standard
})
1480
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) };
1481
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) };
1482
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) };
1483
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) };
1484
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) };
1485
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) };
1486
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) };
1487
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) };
1488
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) };
1489
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) };
1490
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) };
1491
yield return new object[] { FlatStyle.
Standard
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) };
1493
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.
Standard
})
1559
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Popup, FlatStyle.
Standard
})
1725
FlatStyle = FlatStyle.
Standard
,
1749
FlatStyle = FlatStyle.
Standard
,
1840
yield return new object[] { FlatStyle.
Standard
, true, 1, 0, 2, 0 };
1845
yield return new object[] { FlatStyle.
Standard
, false, 0, 0, 1, 0 };
3570
yield return new object[] { FlatStyle.
Standard
, IntPtr.Zero, (IntPtr)250, 1 };
3571
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3572
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3573
yield return new object[] { FlatStyle.
Standard
, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (3)
70
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
776
yield return new object[] { Appearance.Button, FlatStyle.
Standard
};
780
yield return new object[] { Appearance.Normal, FlatStyle.
Standard
};
System\Windows\Forms\ComboBoxTests.cs (17)
77
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
1775
yield return new object[] { FlatStyle.
Standard
, false, true, allPaintingInWmPaint, false, 0 };
1779
yield return new object[] { FlatStyle.
Standard
, false, false, allPaintingInWmPaint, false, 0 };
1784
yield return new object[] { FlatStyle.
Standard
, true, true, allPaintingInWmPaint, true, 0 };
1788
yield return new object[] { FlatStyle.
Standard
, true, false, allPaintingInWmPaint, true, 1 };
1852
yield return new object[] { FlatStyle.
Standard
, false, true, allPaintingInWmPaint, 0 };
1856
yield return new object[] { FlatStyle.
Standard
, false, false, allPaintingInWmPaint, 0 };
1861
yield return new object[] { FlatStyle.
Standard
, true, true, allPaintingInWmPaint, 0 };
1865
yield return new object[] { FlatStyle.
Standard
, true, false, allPaintingInWmPaint, 1 };
1943
yield return new object[] { FlatStyle.
Standard
, false, true, allPaintingInWmPaint, false, 0 };
1947
yield return new object[] { FlatStyle.
Standard
, false, false, allPaintingInWmPaint, false, 0 };
1952
yield return new object[] { FlatStyle.
Standard
, true, true, allPaintingInWmPaint, false, 1 };
1956
yield return new object[] { FlatStyle.
Standard
, true, false, allPaintingInWmPaint, false, 1 };
2042
yield return new object[] { FlatStyle.
Standard
, false, true, allPaintingInWmPaint, 0 };
2046
yield return new object[] { FlatStyle.
Standard
, false, false, allPaintingInWmPaint, 0 };
2051
yield return new object[] { FlatStyle.
Standard
, true, true, allPaintingInWmPaint, 1 };
2055
yield return new object[] { FlatStyle.
Standard
, true, false, allPaintingInWmPaint, 1 };
System\Windows\Forms\GroupBoxTests.cs (31)
62
Assert.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)
62
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
352
[InlineData(FlatStyle.
Standard
)]
System\Windows\Forms\RadioButtonTests.cs (8)
69
Assert.Equal(FlatStyle.
Standard
, control.FlatStyle);
345
yield 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)
15
FlatStyle.
Standard
,
CustomComCtl32Button.cs (3)
25
FlatStyle = FlatStyle.
Standard
,
35
FlatStyle = FlatStyle.
Standard
,
45
FlatStyle = FlatStyle.
Standard
,