23 references to IsDarkModeEnabled
System.Windows.Forms (20)
System\Windows\Forms\Application.cs (1)
310bool darkModeEnabled = IsDarkModeEnabled;
System\Windows\Forms\Control.cs (2)
7306if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 10322PrepareDarkMode(HWND, Application.IsDarkModeEnabled);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2338if (Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
493|| Application.IsDarkModeEnabled
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
428if (ShouldSerializeForeColor() || Application.IsDarkModeEnabled || !Enabled)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
4533if (Application.IsDarkModeEnabled) 4939if (c != SystemColors.Window || Application.IsDarkModeEnabled) 4946if (c != SystemColors.WindowText || Application.IsDarkModeEnabled) 5943if (Application.IsDarkModeEnabled
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
200if (ShouldSerializeBackColor() || Application.IsDarkModeEnabled) 416if (ShouldSerializeForeColor() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
84if (Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
108else if (!Application.IsDarkModeEnabled 606Color bkColor = (UseVisualStyleBackColor && !Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
559if (Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
301using var brush = Application.IsDarkModeEnabled ?
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1885if (c != SystemColors.Window || Application.IsDarkModeEnabled) 1892if (c != SystemColors.WindowText || Application.IsDarkModeEnabled)
System\Windows\Forms\Form.cs (1)
4278if (Application.IsDarkModeEnabled)
System.Windows.Forms.Tests (3)
System\Windows\Forms\ApplicationTests.cs (3)
164Assert.False(Application.IsDarkModeEnabled); 169Assert.True(Application.IsDarkModeEnabled); 174Assert.False(Application.IsDarkModeEnabled ^ systemColorMode == SystemColorMode.Dark);