186 references to Popup
Accessibility_Core_App (2)
CommonControl1.Designer.cs (1)
160this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
ContainerControls.Designer.cs (1)
242this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
System.Windows.Forms (32)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
975case FlatStyle.Popup:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
718if ((!ContainsFocus || !Application.RenderWithVisualStyles) && FlatStyle == FlatStyle.Popup) 1518if (FlatStyle == FlatStyle.Popup) 1562if (FlatStyle == FlatStyle.Popup) 3664&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3733&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 3768if ((!Enabled || FlatStyle == FlatStyle.Popup) && MouseIsOver) 3785if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3791if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
82if ((!comboBox.Enabled) || (comboBox.FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
536(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 561if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 798Debug.Assert(FlatStyle == FlatStyle.Popup, "FlatStyle.Popup is the last flat style"); 928Debug.Assert(FlatStyle == FlatStyle.Popup, "FlatStyle.Popup is the last flat style"); 967FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.Popup)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (8)
666case FlatStyle.Popup: 699FlatStyle.Popup => CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 2, 886(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 911if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 1173case FlatStyle.Popup: 1188case FlatStyle.Popup: 1231if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.Popup) 1382Debug.Assert(FlatStyle == FlatStyle.Popup);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
401bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.Popup; 1209if (FlatStyle is FlatStyle.Flat or FlatStyle.Popup) 1695if (DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && FlatStyle == FlatStyle.Popup) 1722if (DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && FlatStyle == FlatStyle.Popup) 1891bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.Popup; 1892bool paintPopup = FlatStyle == FlatStyle.Popup &&
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
47FlatStyle = FlatStyle.Popup, 182[DefaultValue(FlatStyle.Popup)]
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
12FlatStyle = FlatStyle.Popup;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
128else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 149else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 176if (flatStyle is FlatStyle.Standard or FlatStyle.Flat or FlatStyle.Popup) 201if (flatStyle is FlatStyle.Standard or FlatStyle.Popup)
System.Windows.Forms.Tests (144)
LinkLabelTests.cs (1)
33[InlineData(FlatStyle.Popup)]
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)] 180foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1123yield return new object[] { true, FlatStyle.Popup, 1 }; 1128yield return new object[] { false, FlatStyle.Popup, 0 }; 1188yield return new object[] { autoSize, FlatStyle.Popup, 1, 0 }; 1235yield return new object[] { FlatStyle.Flat, FlatStyle.Popup, 1, 0 }; 1239yield return new object[] { FlatStyle.Popup, FlatStyle.Flat, 1, 0 }; 1240yield return new object[] { FlatStyle.Popup, FlatStyle.Popup, 0, 0 }; 1241yield return new object[] { FlatStyle.Popup, FlatStyle.Standard, 1, 0 }; 1242yield return new object[] { FlatStyle.Popup, FlatStyle.System, 1, 1 }; 1245yield return new object[] { FlatStyle.Standard, FlatStyle.Popup, 1, 0 }; 1250yield return new object[] { FlatStyle.System, FlatStyle.Popup, 1, 1 }; 1294yield return new object[] { true, FlatStyle.Popup, 1, 1, 0 }; 1299yield return new object[] { false, FlatStyle.Popup, 0, 1, 0 }; 2742yield return new object[] { FlatStyle.Popup, true, 1, 0, 2, 0 }; 2747yield return new object[] { FlatStyle.Popup, false, 0, 0, 1, 0 }; 3366yield return new object[] { autoSize, FlatStyle.Popup, value, expectedCallCount, 0 }; 3416yield return new object[] { true, FlatStyle.Popup, value, expectedCallCount, expectedCallCount, 0 }; 3421yield 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)] 9100yield return new object[] { FlatStyle.Popup, IntPtr.Zero, IntPtr.Zero, 0 }; 9101yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9102yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9103yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9188yield 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)] 202foreach (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)] 1389yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1390yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) }; 1391yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) }; 1392yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) }; 1393yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) }; 1394yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) }; 1395yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) }; 1396yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) }; 1397yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) }; 1398yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) }; 1399yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) }; 1400yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(6, 6) }; 1415foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1467yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1468yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) }; 1469yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) }; 1470yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) }; 1471yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) }; 1472yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) }; 1473yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) }; 1474yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) }; 1475yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) }; 1476yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) }; 1477yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) }; 1478yield return new object[] { FlatStyle.Popup, 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 }) 1677FlatStyle = FlatStyle.Popup, 1701FlatStyle = FlatStyle.Popup, 1839yield return new object[] { FlatStyle.Popup, true, 1, 0, 2, 0 }; 1844yield return new object[] { FlatStyle.Popup, false, 0, 0, 1, 0 }; 3565yield return new object[] { FlatStyle.Popup, IntPtr.Zero, (IntPtr)250, 1 }; 3566yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3567yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3568yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (2)
778yield return new object[] { Appearance.Button, FlatStyle.Popup }; 782yield return new object[] { Appearance.Normal, FlatStyle.Popup };
System\Windows\Forms\ComboBoxTests.cs (16)
1774yield return new object[] { FlatStyle.Popup, false, true, allPaintingInWmPaint, true, 0 }; 1778yield return new object[] { FlatStyle.Popup, false, false, allPaintingInWmPaint, true, 0 }; 1783yield return new object[] { FlatStyle.Popup, true, true, allPaintingInWmPaint, true, 0 }; 1787yield return new object[] { FlatStyle.Popup, true, false, allPaintingInWmPaint, true, 1 }; 1851yield return new object[] { FlatStyle.Popup, false, true, allPaintingInWmPaint, 0 }; 1855yield return new object[] { FlatStyle.Popup, false, false, allPaintingInWmPaint, 0 }; 1860yield return new object[] { FlatStyle.Popup, true, true, allPaintingInWmPaint, 0 }; 1864yield return new object[] { FlatStyle.Popup, true, false, allPaintingInWmPaint, 1 }; 1942yield return new object[] { FlatStyle.Popup, false, true, allPaintingInWmPaint, true, 0 }; 1946yield return new object[] { FlatStyle.Popup, false, false, allPaintingInWmPaint, true, 0 }; 1951yield return new object[] { FlatStyle.Popup, true, true, allPaintingInWmPaint, false, 1 }; 1955yield return new object[] { FlatStyle.Popup, true, false, allPaintingInWmPaint, false, 1 }; 2041yield return new object[] { FlatStyle.Popup, false, true, allPaintingInWmPaint, 0 }; 2045yield return new object[] { FlatStyle.Popup, false, false, allPaintingInWmPaint, 0 }; 2050yield return new object[] { FlatStyle.Popup, true, true, allPaintingInWmPaint, 1 }; 2054yield 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)
344yield 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)
14FlatStyle.Popup,
ComboBoxes.Designer.cs (3)
120this.comboBox5.FlatStyle = System.Windows.Forms.FlatStyle.Popup; 132this.comboBox6.FlatStyle = System.Windows.Forms.FlatStyle.Popup; 183this.comboBox10.FlatStyle = System.Windows.Forms.FlatStyle.Popup;