185 references to Popup
Accessibility_Core_App (2)
CommonControl1.Designer.cs (1)
160
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.
Popup
;
ContainerControls.Designer.cs (1)
242
this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.
Popup
;
System.Windows.Forms (32)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
975
case FlatStyle.
Popup
:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
718
if ((!ContainsFocus || !Application.RenderWithVisualStyles) && FlatStyle == FlatStyle.
Popup
)
1517
if (FlatStyle == FlatStyle.
Popup
)
1561
if (FlatStyle == FlatStyle.
Popup
)
3663
&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
))
3732
&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
)
3767
if ((!Enabled || FlatStyle == FlatStyle.
Popup
) && MouseIsOver)
3784
if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
))
3790
if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
82
if ((!comboBox.Enabled) || (comboBox.FlatStyle == FlatStyle.
Popup
))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
536
(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
))
561
if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
)
798
Debug.Assert(FlatStyle == FlatStyle.
Popup
, "FlatStyle.Popup is the last flat style");
928
Debug.Assert(FlatStyle == FlatStyle.
Popup
, "FlatStyle.Popup is the last flat style");
967
FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.
Popup
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (8)
666
case FlatStyle.
Popup
:
699
FlatStyle.
Popup
=> CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 2,
885
(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
))
910
if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.
Popup
)
1172
case FlatStyle.
Popup
:
1187
case FlatStyle.
Popup
:
1230
if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.
Popup
)
1381
Debug.Assert(FlatStyle == FlatStyle.
Popup
);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
401
bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.
Popup
;
1213
if (FlatStyle is FlatStyle.Flat or FlatStyle.
Popup
)
1699
if (DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && FlatStyle == FlatStyle.
Popup
)
1726
if (DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && FlatStyle == FlatStyle.
Popup
)
1895
bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.
Popup
;
1896
bool paintPopup = FlatStyle == FlatStyle.
Popup
&&
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
47
FlatStyle = FlatStyle.
Popup
,
182
[DefaultValue(FlatStyle.
Popup
)]
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
12
FlatStyle = FlatStyle.
Popup
;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
128
else if (flatStyle is FlatStyle.Flat or FlatStyle.
Popup
)
149
else if (flatStyle is FlatStyle.Flat or FlatStyle.
Popup
)
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 (143)
System\Windows\Forms\AbstractButtonBaseTests.cs (1)
65
&& flatStyle != FlatStyle.
Popup
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (4)
29
[InlineData(FlatStyle.
Popup
, true, true, AccessibleStates.Focusable | AccessibleStates.Pressed)]
30
[InlineData(FlatStyle.
Popup
, false, true, AccessibleStates.None)]
31
[InlineData(FlatStyle.
Popup
, true, false, AccessibleStates.Focusable)]
32
[InlineData(FlatStyle.
Popup
, false, false, AccessibleStates.None)]
System\Windows\Forms\ButtonBaseTests.cs (41)
148
[InlineData(FlatStyle.
Popup
, true, 0x56010000)]
149
[InlineData(FlatStyle.
Popup
, false, 0x56010000)]
180
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.
Popup
, FlatStyle.Standard })
1123
yield return new object[] { true, FlatStyle.
Popup
, 1 };
1128
yield return new object[] { false, FlatStyle.
Popup
, 0 };
1188
yield return new object[] { autoSize, FlatStyle.
Popup
, 1, 0 };
1235
yield return new object[] { FlatStyle.Flat, FlatStyle.
Popup
, 1, 0 };
1239
yield return new object[] { FlatStyle.
Popup
, FlatStyle.Flat, 1, 0 };
1240
yield return new object[] { FlatStyle.
Popup
, FlatStyle.
Popup
, 0, 0 };
1241
yield return new object[] { FlatStyle.
Popup
, FlatStyle.Standard, 1, 0 };
1242
yield return new object[] { FlatStyle.
Popup
, FlatStyle.System, 1, 1 };
1245
yield return new object[] { FlatStyle.Standard, FlatStyle.
Popup
, 1, 0 };
1250
yield return new object[] { FlatStyle.System, FlatStyle.
Popup
, 1, 1 };
1294
yield return new object[] { true, FlatStyle.
Popup
, 1, 1, 0 };
1299
yield return new object[] { false, FlatStyle.
Popup
, 0, 1, 0 };
2742
yield return new object[] { FlatStyle.
Popup
, true, 1, 0, 2, 0 };
2747
yield return new object[] { FlatStyle.
Popup
, false, 0, 0, 1, 0 };
3366
yield return new object[] { autoSize, FlatStyle.
Popup
, value, expectedCallCount, 0 };
3416
yield return new object[] { true, FlatStyle.
Popup
, value, expectedCallCount, expectedCallCount, 0 };
3421
yield return new object[] { false, FlatStyle.
Popup
, value, 0, expectedCallCount, 0 };
5689
[InlineData(FlatStyle.
Popup
, Keys.Cancel, 0)]
5690
[InlineData(FlatStyle.
Popup
, Keys.Enter, 0)]
5691
[InlineData(FlatStyle.
Popup
, Keys.Space, 0)]
5713
[InlineData(FlatStyle.
Popup
, Keys.Cancel, 0)]
5714
[InlineData(FlatStyle.
Popup
, Keys.Enter, 0)]
5715
[InlineData(FlatStyle.
Popup
, Keys.Space, 0)]
5968
[InlineData(FlatStyle.
Popup
, Keys.Cancel, 0)]
5969
[InlineData(FlatStyle.
Popup
, Keys.Enter, 0)]
5970
[InlineData(FlatStyle.
Popup
, Keys.Space, 0)]
5992
[InlineData(FlatStyle.
Popup
, Keys.Cancel, 0)]
5993
[InlineData(FlatStyle.
Popup
, Keys.Enter, 0)]
5994
[InlineData(FlatStyle.
Popup
, Keys.Space, 0)]
7782
[InlineData(FlatStyle.
Popup
, 1)]
8127
[InlineData(FlatStyle.
Popup
, 1)]
8632
[InlineData(FlatStyle.
Popup
, 2)]
9100
yield return new object[] { FlatStyle.
Popup
, IntPtr.Zero, IntPtr.Zero, 0 };
9101
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9102
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9103
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 };
9188
yield return new object[] { FlatStyle.
Popup
, (IntPtr)250 };
System\Windows\Forms\ButtonTests.cs (40)
170
[InlineData(FlatStyle.
Popup
, true, 0x5601000B)]
171
[InlineData(FlatStyle.
Popup
, false, 0x5601000B)]
202
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.
Popup
, FlatStyle.Standard })
1038
[InlineData(true, FlatStyle.
Popup
, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)]
1042
[InlineData(false, FlatStyle.
Popup
, AccessibleStates.None, AccessibleRole.None)]
1389
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) };
1390
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) };
1391
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) };
1392
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) };
1393
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) };
1394
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) };
1395
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) };
1396
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) };
1397
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) };
1398
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) };
1399
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) };
1400
yield return new object[] { FlatStyle.
Popup
, 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 })
1467
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) };
1468
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) };
1469
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) };
1470
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) };
1471
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) };
1472
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) };
1473
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) };
1474
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) };
1475
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) };
1476
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) };
1477
yield return new object[] { FlatStyle.
Popup
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) };
1478
yield return new object[] { FlatStyle.
Popup
, 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 })
1677
FlatStyle = FlatStyle.
Popup
,
1701
FlatStyle = FlatStyle.
Popup
,
1839
yield return new object[] { FlatStyle.
Popup
, true, 1, 0, 2, 0 };
1844
yield return new object[] { FlatStyle.
Popup
, false, 0, 0, 1, 0 };
3565
yield return new object[] { FlatStyle.
Popup
, IntPtr.Zero, (IntPtr)250, 1 };
3566
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3567
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3568
yield return new object[] { FlatStyle.
Popup
, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (2)
778
yield return new object[] { Appearance.Button, FlatStyle.
Popup
};
782
yield return new object[] { Appearance.Normal, FlatStyle.
Popup
};
System\Windows\Forms\ComboBoxTests.cs (16)
1774
yield return new object[] { FlatStyle.
Popup
, false, true, allPaintingInWmPaint, true, 0 };
1778
yield return new object[] { FlatStyle.
Popup
, false, false, allPaintingInWmPaint, true, 0 };
1783
yield return new object[] { FlatStyle.
Popup
, true, true, allPaintingInWmPaint, true, 0 };
1787
yield return new object[] { FlatStyle.
Popup
, true, false, allPaintingInWmPaint, true, 1 };
1851
yield return new object[] { FlatStyle.
Popup
, false, true, allPaintingInWmPaint, 0 };
1855
yield return new object[] { FlatStyle.
Popup
, false, false, allPaintingInWmPaint, 0 };
1860
yield return new object[] { FlatStyle.
Popup
, true, true, allPaintingInWmPaint, 0 };
1864
yield return new object[] { FlatStyle.
Popup
, true, false, allPaintingInWmPaint, 1 };
1942
yield return new object[] { FlatStyle.
Popup
, false, true, allPaintingInWmPaint, true, 0 };
1946
yield return new object[] { FlatStyle.
Popup
, false, false, allPaintingInWmPaint, true, 0 };
1951
yield return new object[] { FlatStyle.
Popup
, true, true, allPaintingInWmPaint, false, 1 };
1955
yield return new object[] { FlatStyle.
Popup
, true, false, allPaintingInWmPaint, false, 1 };
2041
yield return new object[] { FlatStyle.
Popup
, false, true, allPaintingInWmPaint, 0 };
2045
yield return new object[] { FlatStyle.
Popup
, false, false, allPaintingInWmPaint, 0 };
2050
yield return new object[] { FlatStyle.
Popup
, true, true, allPaintingInWmPaint, 1 };
2054
yield return new object[] { FlatStyle.
Popup
, true, false, allPaintingInWmPaint, 1 };
System\Windows\Forms\GroupBoxTests.cs (30)
128
[InlineData(FlatStyle.
Popup
, null, 0x56000000)]
619
[InlineData(FlatStyle.
Popup
, true, true, true)]
649
[InlineData(FlatStyle.Flat, FlatStyle.
Popup
, true, true, true)]
652
[InlineData(FlatStyle.
Popup
, FlatStyle.Flat, true, true, true)]
653
[InlineData(FlatStyle.
Popup
, FlatStyle.
Popup
, false, true, true)]
654
[InlineData(FlatStyle.
Popup
, FlatStyle.Standard, true, true, true)]
655
[InlineData(FlatStyle.
Popup
, FlatStyle.System, true, false, false)]
657
[InlineData(FlatStyle.Standard, FlatStyle.
Popup
, true, true, true)]
661
[InlineData(FlatStyle.System, FlatStyle.
Popup
, true, true, true)]
694
[InlineData(FlatStyle.
Popup
, true, true, true, 1, 0)]
742
[InlineData(FlatStyle.
Popup
, true, true, true, 1, 0)]
796
[InlineData(FlatStyle.Flat, FlatStyle.
Popup
, true, true, true, 1, 0)]
799
[InlineData(FlatStyle.
Popup
, FlatStyle.Flat, true, true, true, 1, 0)]
800
[InlineData(FlatStyle.
Popup
, FlatStyle.
Popup
, false, true, true, 0, 0)]
801
[InlineData(FlatStyle.
Popup
, FlatStyle.Standard, true, true, true, 1, 0)]
802
[InlineData(FlatStyle.
Popup
, FlatStyle.System, true, false, false, 0, 1)]
804
[InlineData(FlatStyle.Standard, FlatStyle.
Popup
, true, true, true, 1, 0)]
808
[InlineData(FlatStyle.System, FlatStyle.
Popup
, true, true, true, 0, 1)]
859
[InlineData(FlatStyle.Flat, FlatStyle.
Popup
, true, true, true, 1, 0)]
862
[InlineData(FlatStyle.
Popup
, FlatStyle.Flat, true, true, true, 1, 0)]
863
[InlineData(FlatStyle.
Popup
, FlatStyle.
Popup
, false, true, true, 0, 0)]
864
[InlineData(FlatStyle.
Popup
, FlatStyle.Standard, true, true, true, 1, 0)]
865
[InlineData(FlatStyle.
Popup
, FlatStyle.System, true, false, false, 0, 1)]
867
[InlineData(FlatStyle.Standard, FlatStyle.
Popup
, true, true, true, 1, 0)]
871
[InlineData(FlatStyle.System, FlatStyle.
Popup
, true, true, true, 0, 1)]
2170
[InlineData(FlatStyle.
Popup
)]
2215
[InlineData(FlatStyle.
Popup
)]
System\Windows\Forms\LabelTests.cs (1)
351
[InlineData(FlatStyle.
Popup
)]
System\Windows\Forms\RadioButtonTests.cs (7)
344
yield return new object[] { autoSize, FlatStyle.
Popup
, value, expectedCallCount, 0 };
486
[InlineData(FlatStyle.
Popup
, "", true, AccessibleStates.Focusable)]
490
[InlineData(FlatStyle.
Popup
, "Description", true, AccessibleStates.Focusable)]
494
[InlineData(FlatStyle.
Popup
, "", false, AccessibleStates.None)]
498
[InlineData(FlatStyle.
Popup
, "Description", false, AccessibleStates.None)]
1658
[InlineData(Appearance.Button, FlatStyle.
Popup
)]
1662
[InlineData(Appearance.Normal, FlatStyle.
Popup
)]
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
173
[InlineData(FlatStyle.
Popup
)]
WinFormsControlsTest (4)
Buttons.cs (1)
14
FlatStyle.
Popup
,
ComboBoxes.Designer.cs (3)
120
this.comboBox5.FlatStyle = System.Windows.Forms.FlatStyle.
Popup
;
132
this.comboBox6.FlatStyle = System.Windows.Forms.FlatStyle.
Popup
;
183
this.comboBox10.FlatStyle = System.Windows.Forms.FlatStyle.
Popup
;