87 references to RenderWithVisualStyles
System.Windows.Forms (59)
System\Windows\Forms\Control.cs (1)
8204
if (Application.
RenderWithVisualStyles
&& parent.RenderTransparencyWithVisualStyles)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
70
&& Application.
RenderWithVisualStyles
493
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
631
else if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (5)
112
if (Application.
RenderWithVisualStyles
)
123
if (Application.
RenderWithVisualStyles
)
160
if (Application.
RenderWithVisualStyles
&& Control.FlatStyle != FlatStyle.Standard)
185
if (!Application.
RenderWithVisualStyles
)
220
layout.DotNetOneButtonCompat = !Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
264
if (Application.
RenderWithVisualStyles
)
279
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (3)
40
if (!Application.
RenderWithVisualStyles
)
116
layout.DotNetOneButtonCompat = !Application.
RenderWithVisualStyles
;
118
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
197
if (!Application.
RenderWithVisualStyles
)
204
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (2)
61
layout.DotNetOneButtonCompat = !Application.
RenderWithVisualStyles
;
63
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
25
/// uses the setting from the <see cref="Application.
RenderWithVisualStyles
"/> property to determine the
32
private static bool RenderWithVisualStyles => !RenderMatchingApplicationState || Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
22
private static bool RenderWithVisualStyles => !RenderMatchingApplicationState || Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (1)
23
private static bool RenderWithVisualStyles => !RenderMatchingApplicationState || Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
718
if ((!ContainsFocus || !Application.
RenderWithVisualStyles
) && FlatStyle == FlatStyle.Popup)
3662
if (!Application.
RenderWithVisualStyles
&& !GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
832
internal static bool ApplyVisualStylesToInnerCells => Application.
RenderWithVisualStyles
;
834
internal bool ApplyVisualStylesToHeaderCells => Application.
RenderWithVisualStyles
&& EnableHeadersVisualStyles;
1115
return Application.
RenderWithVisualStyles
? 1 : SystemInformation.Border3DSize.Width;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
19320
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1122
if (IsHandleCreated && Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
404
if (!Application.
RenderWithVisualStyles
|| Width < 10 || Height < 10)
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
28
=> (!RenderMatchingApplicationState || Application.
RenderWithVisualStyles
);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
521
if (Application.
RenderWithVisualStyles
)
554
if (Application.
RenderWithVisualStyles
)
736
else if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2324
if (((nint)m.LParamInternal & PInvoke.PRF_NONCLIENT) != 0 && Application.
RenderWithVisualStyles
&& BorderStyle == BorderStyle.Fixed3D)
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
88
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6896
if (((nint)m.LParamInternal & PInvoke.PRF_NONCLIENT) != 0 && Application.
RenderWithVisualStyles
&& BorderStyle == BorderStyle.Fixed3D)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
71
if (Application.
RenderWithVisualStyles
& _useComboBoxTheme)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
69
if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
109
&& Application.
RenderWithVisualStyles
601
if (Application.
RenderWithVisualStyles
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1798
if (Application.
RenderWithVisualStyles
&& IsHandleCreated && BorderStyle == BorderStyle.Fixed3D)
2896
&& Application.
RenderWithVisualStyles
&& BorderStyle == BorderStyle.Fixed3D)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
560
if (Application.
RenderWithVisualStyles
&& IsHandleCreated && BorderStyle == BorderStyle.Fixed3D)
822
if (((nint)m.LParamInternal & PInvoke.PRF_NONCLIENT) != 0 && Application.
RenderWithVisualStyles
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
538
get => s_visualStylesEnabledIfPossible && Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
55
if (Application.
RenderWithVisualStyles
)
764
if (!Application.
RenderWithVisualStyles
)
772
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3148
&& Application.
RenderWithVisualStyles
&& BorderStyle == BorderStyle.Fixed3D)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
225
if (!Application.
RenderWithVisualStyles
)
521
if (Application.
RenderWithVisualStyles
)
839
bool themed = Application.
RenderWithVisualStyles
;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
262
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
80
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\Form.cs (1)
4404
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (3)
152
Application.
RenderWithVisualStyles
181
public static Color TextControlBorder => Application.
RenderWithVisualStyles
188
public static Color ControlHighlightHot => Application.
RenderWithVisualStyles
System.Windows.Forms.Tests (27)
NumericUpDownTests.cs (3)
23
if (Application.
RenderWithVisualStyles
)
66
if (Application.
RenderWithVisualStyles
)
102
if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\ApplicationTests.cs (3)
82
Assert.True(Application.
RenderWithVisualStyles
);
95
Assert.False(Application.
RenderWithVisualStyles
);
99
Assert.True(Application.
RenderWithVisualStyles
);
System\Windows\Forms\ButtonRenderingTests.cs (4)
31
if (Application.
RenderWithVisualStyles
)
75
if (!Application.
RenderWithVisualStyles
)
115
if (Application.
RenderWithVisualStyles
)
161
if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\CheckBoxRendererTests.cs (4)
35
Application.
RenderWithVisualStyles
72
Application.
RenderWithVisualStyles
109
Application.
RenderWithVisualStyles
143
Application.
RenderWithVisualStyles
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
4279
if (!Application.
RenderWithVisualStyles
)
4347
if (!Application.
RenderWithVisualStyles
)
4492
if (!Application.
RenderWithVisualStyles
)
System\Windows\Forms\DataGridViewRowTests.cs (1)
3726
if (!Application.
RenderWithVisualStyles
&& row.DataGridView.EnableHeadersVisualStyles)
System\Windows\Forms\GroupBoxTests.cs (2)
1938
if (!Application.
RenderWithVisualStyles
)
1950
if (Application.
RenderWithVisualStyles
)
System\Windows\Forms\RadioButtonRendererTests.cs (4)
32
if (Application.
RenderWithVisualStyles
)
36
Application.
RenderWithVisualStyles
66
Application.
RenderWithVisualStyles
132
Application.
RenderWithVisualStyles
System\Windows\Forms\UpDownBaseTests.cs (3)
175
if (Application.
RenderWithVisualStyles
)
2330
if (!Application.
RenderWithVisualStyles
)
2342
if (Application.
RenderWithVisualStyles
)
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
92
if (Application.
RenderWithVisualStyles
&& !isPressed)