35 instantiations of VisualStyleRenderer
System.Windows.Forms (35)
winforms\Managed\System\WinForms\ButtonRenderer.cs (1)
272
visualStyleRenderer = new
VisualStyleRenderer
(ButtonElement.ClassName, ButtonElement.Part, state);
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
352
visualStyleRenderer = new
VisualStyleRenderer
(CheckBoxElement.ClassName, part, state);
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (4)
73
visualStyleRenderer = new
VisualStyleRenderer
(TextBoxElement.ClassName, TextBoxElement.Part, (int)state);
110
visualStyleRenderer = new
VisualStyleRenderer
(TextBoxElement.ClassName, TextBoxElement.Part, (int)state);
132
visualStyleRenderer = new
VisualStyleRenderer
(TextBoxElement.ClassName, TextBoxElement.Part, (int)state);
168
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxElement.ClassName, ComboBoxElement.Part, (int)state);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
1089
visualStyleRenderer = new
VisualStyleRenderer
(ButtonElement);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1787
visualStyleRenderer = new
VisualStyleRenderer
(CheckBoxElement);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
1239
visualStyleRenderer = new
VisualStyleRenderer
(HeaderElement);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
3179
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxReadOnlyButton);
3200
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxBorder);
3215
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxDropDownButtonLeft.ClassName, ComboBoxDropDownButtonLeft.Part, (int)state);
3226
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxDropDownButtonRight.ClassName, ComboBoxDropDownButtonRight.Part, (int)state);
3240
visualStyleRenderer = new
VisualStyleRenderer
(ComboBoxReadOnlyButton.ClassName, ComboBoxReadOnlyButton.Part, (int)state);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
696
visualStyleRenderer = new
VisualStyleRenderer
(VisualStyleElement.Header.Item.Normal);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
1185
visualStyleRenderer = new
VisualStyleRenderer
(HeaderElement);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
453
visualStyleRenderer = new
VisualStyleRenderer
(HeaderElement);
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
154
VisualStyleRenderer vsr = new
VisualStyleRenderer
(VisualStyleElement.Header.Item.Normal);
winforms\Managed\System\WinForms\Form.cs (1)
5064
sizeGripRenderer = new
VisualStyleRenderer
(VisualStyleElement.Status.Gripper.Normal);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (1)
330
visualStyleRenderer = new
VisualStyleRenderer
(GroupBoxElement.ClassName, part, state);
winforms\Managed\System\WinForms\ProgressBarRenderer.cs (1)
133
visualStyleRenderer = new
VisualStyleRenderer
(element);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2026
VisualStyleRenderer explorerTreeRenderer = new
VisualStyleRenderer
(element);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
291
visualStyleRenderer = new
VisualStyleRenderer
(RadioElement.ClassName, part, state);
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (1)
201
visualStyleRenderer = new
VisualStyleRenderer
(element.ClassName, element.Part, state);
winforms\Managed\System\WinForms\StatusBar.cs (1)
81
renderer = new
VisualStyleRenderer
(VisualStyleElement.ToolBar.Button.Normal);
winforms\Managed\System\WinForms\TabRenderer.cs (1)
195
visualStyleRenderer = new
VisualStyleRenderer
(element.ClassName, element.Part, state);
winforms\Managed\System\WinForms\TextBoxRenderer.cs (1)
127
visualStyleRenderer = new
VisualStyleRenderer
(TextBoxElement.ClassName, TextBoxElement.Part, state);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
53
renderer = new
VisualStyleRenderer
(VisualStyleElement.ToolBar.Button.Normal);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (1)
264
visualStyleRenderer = new
VisualStyleRenderer
(element.ClassName, element.Part, state);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
809
VisualStyleRenderer vsr = new
VisualStyleRenderer
(VisualStyleElement.TextBox.TextEdit.Normal);
1697
VisualStyleRenderer vsr = new
VisualStyleRenderer
(mouseOver == ButtonID.Up ? VisualStyleElement.Spin.Up.Hot : VisualStyleElement.Spin.Up.Normal);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleInformation.cs (4)
233
visualStyleRenderer = new
VisualStyleRenderer
(VisualStyleElement.Window.Caption.Active);
254
visualStyleRenderer = new
VisualStyleRenderer
(VisualStyleElement.Window.Caption.Active);
278
visualStyleRenderer = new
VisualStyleRenderer
(VisualStyleElement.TextBox.TextEdit.Normal);
300
visualStyleRenderer = new
VisualStyleRenderer
(VisualStyleElement.Button.PushButton.Normal);
65 references to VisualStyleRenderer
System.Windows.Forms (65)
winforms\Managed\System\WinForms\Application.cs (1)
606
return (ComCtlSupportsVisualStyles && VisualStyles.
VisualStyleRenderer
.IsSupported);
winforms\Managed\System\WinForms\ButtonRenderer.cs (1)
26
private static
VisualStyleRenderer
visualStyleRenderer = null;
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (2)
27
private static
VisualStyleRenderer
visualStyleRenderer = null;
347
&&
VisualStyleRenderer
.IsCombinationDefined(CheckBoxElement.ClassName, VisualStyleElement.Button.CheckBox.HighContrastDisabledPart)) {
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (2)
26
private static
VisualStyleRenderer
visualStyleRenderer = null;
43
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
1077
private static
VisualStyleRenderer
visualStyleRenderer;
1083
public static
VisualStyleRenderer
DataGridViewButtonRenderer
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1775
static
VisualStyleRenderer
visualStyleRenderer;
1781
public static
VisualStyleRenderer
CheckBoxRenderer
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
1227
private static
VisualStyleRenderer
visualStyleRenderer;
1233
public static
VisualStyleRenderer
VisualStyleRenderer
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
594
return
VisualStyleRenderer
.IsElementDefined(VisualStyleElement.ComboBox.ReadOnlyButton.Normal);
3163
private static
VisualStyleRenderer
visualStyleRenderer;
3173
public static
VisualStyleRenderer
VisualStyleRenderer
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
684
private static
VisualStyleRenderer
visualStyleRenderer;
690
public static
VisualStyleRenderer
VisualStyleRenderer
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
1173
private static
VisualStyleRenderer
visualStyleRenderer;
1179
public static
VisualStyleRenderer
VisualStyleRenderer
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
441
private static
VisualStyleRenderer
visualStyleRenderer;
447
public static
VisualStyleRenderer
VisualStyleRenderer
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
154
VisualStyleRenderer
vsr = new VisualStyleRenderer(VisualStyleElement.Header.Item.Normal);
winforms\Managed\System\WinForms\Form.cs (1)
216
private
VisualStyleRenderer
sizeGripRenderer;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
27
private static
VisualStyleRenderer
visualStyleRenderer = null;
325
&&
VisualStyleRenderer
.IsCombinationDefined(GroupBoxElement.ClassName, VisualStyleElement.Button.GroupBox.HighContrastDisabledPart)) {
winforms\Managed\System\WinForms\ProfessionalColors.cs (1)
368
if (
VisualStyleRenderer
.IsSupported) {
winforms\Managed\System\WinForms\ProgressBarRenderer.cs (2)
24
private static
VisualStyleRenderer
visualStyleRenderer = null;
39
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2026
VisualStyleRenderer
explorerTreeRenderer = new VisualStyleRenderer(element);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1552
if (ownerGrid.CanShowVisualStyleGlyphs && UnsafeNativeMethods.IsVista &&
VisualStyleRenderer
.IsSupported) {
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (2)
26
private static
VisualStyleRenderer
visualStyleRenderer = null;
286
&&
VisualStyleRenderer
.IsCombinationDefined(RadioElement.ClassName, VisualStyleElement.Button.RadioButton.HighContrastDisabledPart)) {
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (2)
24
private static
VisualStyleRenderer
visualStyleRenderer = null;
39
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\StatusBar.cs (4)
72
private static
VisualStyleRenderer
renderer = null;
77
private static
VisualStyleRenderer
VisualStyleRenderer {
79
if (
VisualStyleRenderer
.IsSupported) {
97
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
winforms\Managed\System\WinForms\TabRenderer.cs (2)
25
private static
VisualStyleRenderer
visualStyleRenderer = null;
40
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\TextBoxRenderer.cs (2)
26
private static
VisualStyleRenderer
visualStyleRenderer = null;
42
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (18)
20
private static
VisualStyleRenderer
renderer = null;
49
private static
VisualStyleRenderer
VisualStyleRenderer {
52
if (renderer == null &&
VisualStyleRenderer
.IsElementDefined(VisualStyleElement.ToolBar.Button.Normal)) {
200
else if (ToolStripManager.VisualStylesEnabled &&
VisualStyleRenderer
.IsElementDefined(VisualStyleElement.Rebar.Band.Normal)) {
201
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
261
if (ToolStripManager.VisualStylesEnabled &&
VisualStyleRenderer
.IsElementDefined(VisualStyleElement.Rebar.Gripper.Normal)) {
263
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
337
if (ToolStripManager.VisualStylesEnabled &&
VisualStyleRenderer
.IsElementDefined(VisualStyleElement.Rebar.Chevron.Normal)) {
339
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
468
&&
VisualStyleRenderer
.IsElementDefined(splitButtonDropDownPart)
469
&&
VisualStyleRenderer
.IsElementDefined(splitButtonPart)) {
471
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
572
&& (
VisualStyleRenderer
.IsElementDefined(toolBarElement))) {
574
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
603
&& (
VisualStyleRenderer
.IsElementDefined(separator))){
604
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
686
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
708
VisualStyleRenderer
vsRenderer = VisualStyleRenderer;
winforms\Managed\System\WinForms\TrackBarRenderer.cs (2)
24
private static
VisualStyleRenderer
visualStyleRenderer = null;
40
return
VisualStyleRenderer
.IsSupported; // no downlevel support
winforms\Managed\System\WinForms\UpDownBase.cs (2)
809
VisualStyleRenderer
vsr = new VisualStyleRenderer(VisualStyleElement.TextBox.TextEdit.Normal);
1697
VisualStyleRenderer
vsr = new VisualStyleRenderer(mouseOver == ButtonID.Up ? VisualStyleElement.Spin.Up.Hot : VisualStyleElement.Spin.Up.Normal);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleInformation.cs (1)
36
private static
VisualStyleRenderer
visualStyleRenderer = null;