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