200 references to UserPaint
System.Windows.Forms (48)
System\Windows\Forms\ActiveX\AxHost.cs (1)
257
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Control.cs (12)
323
| ControlStyles.
UserPaint
1740
private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.
UserPaint
);
1830
if (IsHandleCreated && !GetStyle(ControlStyles.
UserPaint
))
5746
if (!GetStyle(ControlStyles.
UserPaint
))
6735
if (GetStyle(ControlStyles.
UserPaint
))
7048
if (GetStyle(ControlStyles.
UserPaint
))
7231
if (!GetStyle(ControlStyles.
UserPaint
))
8742
if (GetStyle(ControlStyles.
UserPaint
))
9587
if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.
UserPaint
) && !IsFontSet())
11133
if (GetStyle(ControlStyles.
UserPaint
))
12204
if (GetStyle(ControlStyles.
UserPaint
))
12216
if (GetStyle(ControlStyles.
UserPaint
))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
116
if (GetStyle(ControlStyles.
UserPaint
))
224
if (GetStyle(ControlStyles.
UserPaint
))
234
if (GetStyle(ControlStyles.
UserPaint
))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
79
SetStyle(ControlStyles.UserMouse | ControlStyles.
UserPaint
, OwnerDraw);
936
Debug.Assert(GetStyle(ControlStyles.
UserPaint
), "Shouldn't be in PaintControl when control is not UserPaint style");
1190
if (GetStyle(ControlStyles.
UserPaint
))
1240
if (OwnerDraw != GetStyle(ControlStyles.
UserPaint
))
1242
SetStyle(ControlStyles.UserMouse | ControlStyles.
UserPaint
, OwnerDraw);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
470
&& GetStyle(ControlStyles.
UserPaint
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
118
SetStyle(ControlStyles.
UserPaint
|
1997
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.
UserPaint
))
3660
if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.
UserPaint
)
3730
if (!GetStyle(ControlStyles.
UserPaint
)
3783
if (!GetStyle(ControlStyles.
UserPaint
) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
3789
if (!GetStyle(ControlStyles.
UserPaint
) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
384
SetStyle(ControlStyles.
UserPaint
|
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
119
SetStyle(ControlStyles.
UserPaint
| ControlStyles.StandardClick, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
34
SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.
UserPaint
|
200
ControlStyles.
UserPaint
|
System\Windows\Forms\Controls\Labels\Label.cs (2)
68
SetStyle(ControlStyles.
UserPaint
|
340
SetStyle(ControlStyles.
UserPaint
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
58
| ControlStyles.
UserPaint
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
121
SetStyle(ControlStyles.
UserPaint
| ControlStyles.StandardClick | ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
225
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
138
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
40
SetStyle(ControlStyles.
UserPaint
| ControlStyles.UseTextForAccessibility | ControlStyles.Selectable, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
16
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
85
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
979
!GetStyle(ControlStyles.
UserPaint
) &&
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
99
| ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
55
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
170
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77
SetStyle(ControlStyles.
UserPaint
, false);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
62
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.
UserPaint
| ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
34
SetStyle(ControlStyles.
UserPaint
, false);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
54
SetStyle(ControlStyles.
UserPaint
, true);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
348
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.
UserPaint
, true);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
192
[InlineData(ControlStyles.
UserPaint
, true)]
System.Windows.Forms.Tests (148)
System\Windows\Forms\ButtonBaseTests.cs (13)
1065
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1073
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1107
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1115
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1161
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1171
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1215
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1225
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1274
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1284
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1340
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
1353
Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.
UserPaint
));
5062
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ButtonTests.cs (6)
149
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1768
[InlineData(ControlStyles.
UserPaint
, true)]
3378
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
3417
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
3451
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
3483
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\CheckBoxTests.cs (1)
496
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ComboBoxTests.cs (9)
1455
[InlineData(ControlStyles.
UserPaint
, false)]
1804
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1831
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1879
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1913
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1977
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
2015
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
2074
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
2119
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\ContainerControlTests.cs (1)
512
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ControlTests.Handlers.cs (10)
462
Assert.True(control.GetStyle(ControlStyles.
UserPaint
));
1437
Assert.True(control.GetStyle(ControlStyles.
UserPaint
));
1469
control.SetStyle(ControlStyles.
UserPaint
, false);
1471
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
1695
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
2152
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4631
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4682
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
5625
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
5671
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\ControlTests.Methods.cs (17)
418
Assert.True(control.GetStyle(ControlStyles.
UserPaint
));
439
control.SetStyle(ControlStyles.
UserPaint
, false);
440
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
624
control.SetStyle(ControlStyles.
UserPaint
, resizeRedraw);
2856
[InlineData(ControlStyles.
UserPaint
, true)]
9983
yield return new object[] { ControlStyles.
UserPaint
, true, true };
9984
yield return new object[] { ControlStyles.
UserPaint
, false, false };
12851
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
12887
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
12932
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
12975
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
13175
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
13198
control.SetStyle(ControlStyles.
UserPaint
, true);
13230
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
13270
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
13300
control.SetStyle(ControlStyles.
UserPaint
, true);
13340
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\ControlTests.Properties.cs (7)
4530
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4538
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
4944
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4946
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
4990
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4992
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
12774
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1099
[InlineData(ControlStyles.
UserPaint
, false)]
1275
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\DateTimePickerTests.cs (1)
862
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
215
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
677
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\DomainUpDownTests.cs (1)
1065
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
279
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\FormTests.cs (1)
2430
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\GroupBoxTests.cs (14)
631
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
641
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
676
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
685
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
718
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
731
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
772
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
785
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
835
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
848
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
899
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
912
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
UserPaint
));
1414
[InlineData(ControlStyles.
UserPaint
, true)]
1541
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\HScrollBarTests.cs (1)
209
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\LabelTests.cs (1)
146
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ListBoxTests.cs (1)
4898
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\ListControlTests.cs (1)
2563
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ListViewTests.cs (1)
4255
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\MenuStripTests.cs (1)
512
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\MonthCalendarTests.cs (1)
3324
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\PanelTests.cs (1)
853
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\PictureBoxTests.cs (2)
1869
[InlineData(ControlStyles.
UserPaint
, true)]
2218
Assert.True(control.GetStyle(ControlStyles.
UserPaint
));
System\Windows\Forms\ProgressBarTests.cs (2)
1798
[InlineData(ControlStyles.
UserPaint
, false)]
2141
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
System\Windows\Forms\PropertyGridTests.cs (1)
3474
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\RadioButtonTests.cs (2)
149
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
623
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\RichTextBoxTests.cs (9)
1427
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1429
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1464
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1466
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1511
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1513
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1550
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1552
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
8971
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\ScrollableControlTests.cs (1)
1350
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ScrollBarTests.cs (2)
1862
[InlineData(ControlStyles.
UserPaint
, false)]
2689
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
System\Windows\Forms\SplitterTests.cs (1)
1641
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\StatusStripTests.cs (1)
1097
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\TabControlTests.cs (1)
3930
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1169
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\TabPageTests.cs (4)
1025
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1033
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
3610
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
3775
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1673
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3644
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ToolStripPanelTests.cs (1)
307
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\ToolStripTests.cs (2)
4133
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
4922
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\TreeViewTests.cs (4)
5045
[InlineData(ControlStyles.
UserPaint
, false)]
5976
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
6032
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
6113
Assert.False(control.GetStyle(ControlStyles.
UserPaint
));
System\Windows\Forms\UpDownBaseTests.cs (1)
1682
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\UserControlTests.cs (1)
897
[InlineData(ControlStyles.
UserPaint
, true)]
System\Windows\Forms\VScrollBarTests.cs (1)
199
[InlineData(ControlStyles.
UserPaint
, false)]
System\Windows\Forms\WebBrowserTests.cs (1)
2816
[InlineData(ControlStyles.
UserPaint
, false)]
TextBoxBaseTests.cs (9)
965
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
967
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1002
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1004
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1049
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1051
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
1088
control.SetStyle(ControlStyles.
UserPaint
, userPaint);
1090
Assert.Equal(userPaint, control.GetStyle(ControlStyles.
UserPaint
));
5142
[InlineData(ControlStyles.
UserPaint
, false)]
TextBoxTests.cs (3)
495
[InlineData(ControlStyles.
UserPaint
, false)]
760
get => GetStyle(ControlStyles.
UserPaint
);
761
set => SetStyle(ControlStyles.
UserPaint
, value);
TrackBarTests.cs (1)
2273
[InlineData(ControlStyles.
UserPaint
, false)]
WebBrowserBaseTests.cs (1)
764
[InlineData(ControlStyles.
UserPaint
, false)]
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
75
SetStyle(SWF.ControlStyles.
UserPaint
, true);