73 references to Utility
PresentationFramework (73)
System\Windows\Appearance\WindowBackdropManager.cs (5)
17WindowBackdropType.Auto => Utility.IsWindows11_22H2OrNewer, 18WindowBackdropType.TabbedWindow => Utility.IsWindows11_22H2OrNewer, 19WindowBackdropType.MainWindow => Utility.IsOSWindows11OrNewer, 20WindowBackdropType.TransientWindow => Utility.IsOSWindows7OrNewer, 135internal static bool IsBackdropEnabled => _isBackdropEnabled ??= Utility.IsWindows11_22H2OrNewer &&
System\Windows\Shell\WindowChrome.cs (3)
197(value) => Utility.IsThicknessNonNegative((Thickness)value)); 218if (!Utility.IsThicknessNonNegative(thickness)) 251(value) => Utility.IsCornerRadiusValid((CornerRadius)value));
System\Windows\Shell\WindowChromeWorker.cs (48)
85if (Utility.IsPresentationFrameworkVersionLessThan4) 163Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 164Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 205Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 206Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 330if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 338if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 346if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 354if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 364if (Utility.IsPresentationFrameworkVersionLessThan4) 373if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 382if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 391if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 400if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 441if (Utility.IsPresentationFrameworkVersionLessThan4) 455Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 484Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 503Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 592if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 596if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 600if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 604if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 660var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 691if (Utility.IsOSVistaOrNewer && _chromeInfo.GlassFrameThickness != default(Thickness) && _isGlassEnabled) 718SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 758if (!Utility.IsFlagSet(wp.flags, (int)SWP.NOSIZE)) 785Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 796Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 802Assert.Implies(_window.WindowState == WindowState.Maximized, Utility.IsOSWindows7OrNewer); 823Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 831Assert.IsTrue(Utility.IsOSWindows7OrNewer); 843Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 925bool canMinimize = Utility.IsFlagSet((int)dwStyle, (int)WS.MINIMIZEBOX); 926bool canMaximize = Utility.IsFlagSet((int)dwStyle, (int)WS.MAXIMIZEBOX); 927bool canSize = Utility.IsFlagSet((int)dwStyle, (int)WS.THICKFRAME); 1037Utility.SafeDeleteObject(ref hrgn); 1045if (null != wp && !Utility.IsFlagSet(wp.Value.flags, (int)SWP.NOSIZE)) 1115Utility.SafeDeleteObject(ref hrgn); 1158Utility.SafeDeleteObject(ref hrgn); 1188if (!Utility.IsOSVistaOrNewer) 1225if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 1230if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 1235if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 1240if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 1388if (Utility.IsPresentationFrameworkVersionLessThan4) 1403if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero)
System\Windows\Standard\MessageWindow.cs (1)
188Utility.SafeDestroyWindow(ref hwnd);
System\Windows\Standard\NativeMethods.cs (14)
1601Utility.SafeRelease(ref cp); 1629Utility.SafeRelease(ref _cp); 2074return (_left << 16 | Utility.LOWORD(_right)) ^ (_top << 16 | Utility.LOWORD(_bottom)); 2351if (!Utility.IsOSVistaOrNewer) 2359if (!Utility.IsOSWindows7OrNewer) 2588if (Utility.IsOSVistaOrNewer && IsThemeActive()) 2610if (!Utility.IsOSVistaOrNewer) 2629Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2637Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2645Assert.IsTrue(Utility.IsOSVistaOrNewer); 2653Assert.IsTrue(Utility.IsOSWindows7OrNewer); 3143var metrics = Utility.IsOSVistaOrNewer 3327if (!Utility.IsOSVistaOrNewer)
System\Windows\SystemParameters.cs (1)
5674_windowGlassColor = Standard.Utility.ColorFromArgbDword(color);
System\Windows\Window.cs (1)
2518if (Standard.Utility.IsOSWindows11OrNewer && ThemeManager.IsFluentThemeEnabled)