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