48 references to OsVersion
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.SystemParametersInfo.cs (1)
81
if (
OsVersion
.IsWindows10_1607OrGreater())
System.Windows.Forms (30)
System\Windows\Forms\Application.cs (1)
508
=> !SystemInformation.HighContrast &&
OsVersion
.IsWindows11_OrGreater();
System\Windows\Forms\Control.cs (4)
5627
if (OriginalDeviceDpiInternal != DeviceDpiInternal &&
OsVersion
.IsWindows10_1703OrGreater())
6690
if ((ScaleHelper.IsThreadPerMonitorV2Aware || ScaleHelper.IsScalingRequired) &&
OsVersion
.IsWindows10_1703OrGreater())
8350
if (
OsVersion
.IsWindows11_OrGreater()
10182
if (
OsVersion
.IsWindows8OrGreater() && TryGetAccessibilityObject(out AccessibleObject? accessibleObject))
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
155
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (2)
593
|| !
OsVersion
.IsWindows11_OrGreater())
613
|| !
OsVersion
.IsWindows11_OrGreater())
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
37
if (!
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
25603
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1065
if (DataGridView.IsAccessibilityObjectCreated &&
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
2179
if (DataGridView.IsAccessibilityObjectCreated &&
OsVersion
.IsWindows8OrGreater() && this[index] is DataGridViewRow row)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
444
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
130
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5091
if (!
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
437
if (
OsVersion
.IsWindows8OrGreater() && _accessibilityObject is ListViewGroupAccessibleObject accessibleObject)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
1019
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
42
Debug.Assert(
OsVersion
.IsWindows8OrGreater());
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
50
Debug.Assert(
OsVersion
.IsWindows8OrGreater());
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
94
Debug.Assert(
OsVersion
.IsWindows8OrGreater());
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1481
if (
OsVersion
.IsWindows8OrGreater() && IsAccessibilityObjectCreated)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
80
Debug.Assert(
OsVersion
.IsWindows8OrGreater());
513
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3919
if (
OsVersion
.IsWindows8OrGreater())
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
643
if (
OsVersion
.IsWindows10_1607OrGreater())
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
514
&&
OsVersion
.IsWindows8OrGreater()
System\Windows\Forms\Form.cs (1)
6574
if (!
OsVersion
.IsWindows11_OrGreater())
System\Windows\Forms\NativeWindow.cs (1)
476
if (
OsVersion
.IsWindows10_18030rGreater())
System\Windows\Forms\ToolTip\ToolTip.cs (2)
83
IsPersistent =
OsVersion
.IsWindows11_OrGreater();
95
IsPersistent =
OsVersion
.IsWindows11_OrGreater();
System.Windows.Forms.Primitives (17)
System\Windows\Forms\Internals\ScaleHelper.cs (9)
70
if (!
OsVersion
.IsWindows10_1607OrGreater())
82
if (!
OsVersion
.IsWindows10_1607OrGreater())
231
if (font is null || font.IsSystemFont || !
OsVersion
.IsWindows10_1507OrGreater())
270
if (!
OsVersion
.IsWindows10_1507OrGreater())
354
internal static Size LogicalSmallSystemIconSize => s_logicalSmallSystemIconSize ??=
OsVersion
.IsWindows10_1607OrGreater()
416
if (
OsVersion
.IsWindows10_1607OrGreater())
445
else if (
OsVersion
.IsWindows8_1OrGreater())
488
if (
OsVersion
.IsWindows10_1703OrGreater())
509
else if (
OsVersion
.IsWindows8_1OrGreater())
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
31
if (!
OsVersion
.IsWindows10_18030rGreater())
Windows\Win32\PInvoke.GetDpiForWindow.cs (1)
11
if (
OsVersion
.IsWindows10_1607OrGreater())
Windows\Win32\PInvoke.GetSystemMetrics.cs (1)
13
=>
OsVersion
.IsWindows10_1607OrGreater() ? GetSystemMetricsForDpi(nIndex, dpi) : PInvokeCore.GetSystemMetrics(nIndex);
Windows\Win32\PInvoke.GetThreadDpiAwarenessContext.cs (1)
17
if (
OsVersion
.IsWindows10_1607OrGreater())
Windows\Win32\PInvoke.SetThreadDpiAwarenessContext.cs (1)
17
if (
OsVersion
.IsWindows10_1607OrGreater())
Windows\Win32\PInvoke.UiaDisconnectProvider.cs (1)
13
if (provider is not null && (skipOSCheck ||
OsVersion
.IsWindows8OrGreater()))
Windows\Win32\PInvoke.UiaRaiseNotificationEvent.cs (1)
18
if (
OsVersion
.IsWindows10_1709OrGreater())
Windows\Win32\UI\HiDpi\DPI_AWARENESS_CONTEXT.cs (1)
19
|| (
OsVersion
.IsWindows10_1607OrGreater()