141 references to OptimizedDoubleBuffer
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (3)
1723get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1730SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value); 1734SetStyle(ControlStyles.OptimizedDoubleBuffer, value);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
70| ControlStyles.OptimizedDoubleBuffer
System\Windows\Forms\Controls\Labels\Label.cs (2)
70ControlStyles.OptimizedDoubleBuffer, IsOwnerDraw()); 342| ControlStyles.OptimizedDoubleBuffer, OwnerDraw);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
56| ControlStyles.OptimizedDoubleBuffer 1009bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
112SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
21SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
134SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
131ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
13SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
335SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
955SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, false);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
51SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
21SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
103SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
62SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
52SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Design\ComponentTray.cs (2)
83SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true); 1922SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Design\SelectionUIService.cs (1)
62SetStyle(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)] 1804control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1831control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1879control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1913control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1977control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2015control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2074control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2119control.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)
4431control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 4444Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4450Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4456Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4475Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4484Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4493Assert.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)
1146control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1159Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1165Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1171Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1191Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1200Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1209Assert.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)
751Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 757Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 763Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 782Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 791Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 800Assert.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)
403control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 416Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 422Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 428Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 447Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 456Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 465Assert.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)
796control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 809Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 815Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 821Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 840Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 849Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 858Assert.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)
1148control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1153Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1160Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1169Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1181control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1193Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1203Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1215Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1687[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1913control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1926Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1933Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1952control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1965Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1975Assert.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)
798control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 811Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 817Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 823Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 842Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 851Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 860Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 5156[InlineData(ControlStyles.OptimizedDoubleBuffer, false)]
TextBoxTests.cs (1)
509[InlineData(ControlStyles.OptimizedDoubleBuffer, false)]
TrackBarTests.cs (8)
552control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 565Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 571Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 577Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 596Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 605Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 614Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 2287[InlineData(ControlStyles.OptimizedDoubleBuffer, false)]
WebBrowserBaseTests.cs (1)
778[InlineData(ControlStyles.OptimizedDoubleBuffer, false)]