2 writes to UseVisualStyles
System.Windows.Forms (2)
System\Windows\Forms\Application.cs (2)
926UseVisualStyles = ThemingScope.CreateActivationContext(moduleHandle, nativeResourceManifestID: 2); 936UseVisualStyles = ThemingScope.CreateActivationContext(stream);
89 references to UseVisualStyles
System.Windows.Forms (19)
System\Windows\Forms\Application.cs (2)
103if (UseVisualStyles) 940Debug.Assert(UseVisualStyles, "Enable Visual Styles failed");
System\Windows\Forms\Application.ThreadContext.cs (1)
693using ThemingScope scope = new(UseVisualStyles);
System\Windows\Forms\Control.cs (1)
4485using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
961using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
426using (ThemingScope scope = new(Application.UseVisualStyles))
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (1)
71using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2546using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1123using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
555using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
961using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
758using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1518using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
216using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Dialogs\MessageBox.cs (2)
463if (Application.UseVisualStyles) 478using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
610using ThemingScope scope = new(Application.UseVisualStyles);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
700using (ThemingScope scope = new(Application.UseVisualStyles))
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (1)
164if (!Application.UseVisualStyles)
System.Windows.Forms.Tests (70)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (12)
79if (!Application.UseVisualStyles) 109if (Application.UseVisualStyles) 1448if (!Application.UseVisualStyles) 1474if (!Application.UseVisualStyles) 1511if (!Application.UseVisualStyles) 1544if (!Application.UseVisualStyles) 1563if (!Application.UseVisualStyles) 1591if (!Application.UseVisualStyles) 1615if (!Application.UseVisualStyles) 1637if (!Application.UseVisualStyles) 1661if (!Application.UseVisualStyles) 1695if (!Application.UseVisualStyles)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (15)
78if (!Application.UseVisualStyles) 852if (!Application.UseVisualStyles) 876if (!Application.UseVisualStyles) 916if (!Application.UseVisualStyles) 945if (!Application.UseVisualStyles) 965if (!Application.UseVisualStyles) 991if (!Application.UseVisualStyles) 1016if (!Application.UseVisualStyles) 1035if (!Application.UseVisualStyles) 1059if (!Application.UseVisualStyles) 1086if (!Application.UseVisualStyles) 1107if (!Application.UseVisualStyles) 1133if (!Application.UseVisualStyles) 1190if (!Application.UseVisualStyles) 1211if (!Application.UseVisualStyles)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (7)
157return Application.UseVisualStyles 201if (Application.UseVisualStyles && showGroups && !virtualMode && listView.View != View.List) 248if (Application.UseVisualStyles && showGroups && !virtualMode && listView.View != View.List) 977if (!Application.UseVisualStyles) 1280if (!Application.UseVisualStyles) 1337if (!Application.UseVisualStyles) 1395if (!Application.UseVisualStyles)
System\Windows\Forms\ApplicationTests.cs (3)
81Assert.True(Application.UseVisualStyles); 94Assert.False(Application.UseVisualStyles); 98Assert.True(Application.UseVisualStyles, "New Visual Styles will not be applied on WinForms app. This is a high priority bug and must be looked into");
System\Windows\Forms\DomainUpDownTests.cs (2)
55if (Application.UseVisualStyles) 167if (Application.UseVisualStyles)
System\Windows\Forms\GroupBoxTests.cs (4)
699if (Application.UseVisualStyles) 753if (!Application.UseVisualStyles) 813if (Application.UseVisualStyles) 876if (!Application.UseVisualStyles)
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (3)
148int expectedWidth = Application.UseVisualStyles 183int expectedWidth = Application.UseVisualStyles 199int expectedWidth = Application.UseVisualStyles
System\Windows\Forms\ListViewTests.cs (3)
1985int version = Application.UseVisualStyles ? 6 : 5; 3248if (Application.UseVisualStyles) 3359if (Application.UseVisualStyles)
System\Windows\Forms\TabPageTests.cs (2)
566if (Application.UseVisualStyles) 597if (Application.UseVisualStyles)
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
475if (Application.UseVisualStyles) 645if (Application.UseVisualStyles)
System\Windows\Forms\ToolStripTests.cs (7)
71if (Application.UseVisualStyles) 225if (Application.UseVisualStyles) 2262int x = Application.UseVisualStyles ? 9 : 7; 2263int width = Application.UseVisualStyles ? 90 : 92; 2264int height = Application.UseVisualStyles ? 16 : 18; 6668int x = Application.UseVisualStyles ? 9 : 7; 6713int x = Application.UseVisualStyles ? 9 : 7;
System\Windows\Forms\TreeViewTests.cs (1)
1678int version = Application.UseVisualStyles ? 6 : 5;
System\Windows\Forms\UpDownBaseTests.cs (9)
42if (Application.UseVisualStyles) 150if (Application.UseVisualStyles) 717if (Application.UseVisualStyles) 754if (Application.UseVisualStyles) 1592int expectedWidth = Application.UseVisualStyles ? 122 : 123; 1612int expectedWidth = Application.UseVisualStyles ? 32 : 33; 1624int expectedWidth = Application.UseVisualStyles ? 122 : 123; 2753if (Application.UseVisualStyles) 2785if (Application.UseVisualStyles)