141 references to OptimizedDoubleBuffer
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (3)
1723
get => GetStyle(ControlStyles.
OptimizedDoubleBuffer
);
1730
SetStyle(ControlStyles.
OptimizedDoubleBuffer
| ControlStyles.AllPaintingInWmPaint, value);
1734
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
70
| ControlStyles.
OptimizedDoubleBuffer
System\Windows\Forms\Controls\Labels\Label.cs (2)
70
ControlStyles.
OptimizedDoubleBuffer
, IsOwnerDraw());
342
| ControlStyles.
OptimizedDoubleBuffer
, OwnerDraw);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
56
| ControlStyles.
OptimizedDoubleBuffer
1009
bool optimizeBackgroundRendering = !GetStyle(ControlStyles.
OptimizedDoubleBuffer
);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
112
SetStyle(ControlStyles.
OptimizedDoubleBuffer
| ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
21
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
134
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
131
ControlStyles.
OptimizedDoubleBuffer
| ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
13
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
335
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
955
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.
OptimizedDoubleBuffer
, false);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
51
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.
OptimizedDoubleBuffer
| /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
21
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
103
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
62
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.
OptimizedDoubleBuffer
, true);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
52
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Design\ComponentTray.cs (2)
83
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.
OptimizedDoubleBuffer
, true);
1922
SetStyle(ControlStyles.
OptimizedDoubleBuffer
, true);
System\Windows\Forms\Design\SelectionUIService.cs (1)
62
SetStyle(ControlStyles.StandardClick | ControlStyles.Opaque | ControlStyles.
OptimizedDoubleBuffer
, true);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
206
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System.Windows.Forms.Tests (117)
System\Windows\Forms\ButtonBaseTests.cs (1)
5076
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ButtonTests.cs (1)
1782
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\CheckBoxTests.cs (1)
510
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ComboBoxTests.cs (9)
1468
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
1804
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1831
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1879
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1913
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1977
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
2015
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
2074
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
2119
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
System\Windows\Forms\ContainerControlTests.cs (1)
526
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ControlTests.Methods.cs (1)
2870
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ControlTests.Properties.cs (7)
4431
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
4444
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4450
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4456
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4475
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4484
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4493
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
1113
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\DateTimePickerTests.cs (1)
876
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
229
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
691
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\DomainUpDownTests.cs (1)
1079
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
293
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\FormTests.cs (1)
2444
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\GroupBoxTests.cs (1)
1428
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\HScrollBarTests.cs (1)
223
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\LabelTests.cs (1)
160
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ListBoxTests.cs (1)
4912
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ListControlTests.cs (1)
2577
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ListViewTests.cs (8)
1146
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
1159
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1165
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1171
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1191
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1200
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1209
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
4269
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\MenuStripTests.cs (1)
526
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\MonthCalendarTests.cs (7)
751
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
757
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
763
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
782
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
791
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
800
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
3338
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\PanelTests.cs (1)
867
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\PictureBoxTests.cs (1)
1883
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ProgressBarTests.cs (8)
403
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
416
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
422
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
428
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
447
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
456
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
465
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1812
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\PropertyGridTests.cs (1)
3488
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\RadioButtonTests.cs (1)
637
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\RichTextBoxTests.cs (1)
8985
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ScrollableControlTests.cs (1)
1364
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ScrollBarTests.cs (1)
1876
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\SplitterTests.cs (1)
1655
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\StatusStripTests.cs (1)
1111
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\TabControlTests.cs (8)
796
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
809
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
815
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
821
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
840
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
849
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
858
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
3944
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1183
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\TabPageTests.cs (1)
3789
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\ToolStripContentPanelTests.cs (15)
1148
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1153
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1160
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1169
Assert.True(control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1181
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1193
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1203
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1215
Assert.True(control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1687
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
1913
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1926
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1933
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1952
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, doubleBuffered);
1965
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
1975
Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3658
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ToolStripPanelTests.cs (1)
321
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\ToolStripTests.cs (1)
4936
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, true)]
System\Windows\Forms\TreeViewTests.cs (1)
5059
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\UpDownBaseTests.cs (1)
1696
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\UserControlTests.cs (1)
911
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\VScrollBarTests.cs (1)
213
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
System\Windows\Forms\WebBrowserTests.cs (1)
2830
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
TextBoxBaseTests.cs (8)
798
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
811
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
817
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
823
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
842
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
851
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
860
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
5156
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
TextBoxTests.cs (1)
509
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
TrackBarTests.cs (8)
552
control.SetStyle(ControlStyles.
OptimizedDoubleBuffer
, value);
565
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
571
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
577
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
596
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
605
Assert.Equal(value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
614
Assert.Equal(!value, control.GetStyle(ControlStyles.
OptimizedDoubleBuffer
));
2287
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]
WebBrowserBaseTests.cs (1)
778
[InlineData(ControlStyles.
OptimizedDoubleBuffer
, false)]