57 references to Utility
PresentationFramework (57)
System\Windows\Appearance\WindowBackdropManager.cs (5)
17WindowBackdropType.Auto => Utility.IsWindows11_22H2OrNewer, 18WindowBackdropType.TabbedWindow => Utility.IsWindows11_22H2OrNewer, 19WindowBackdropType.MainWindow => Utility.IsOSWindows11OrNewer, 20WindowBackdropType.TransientWindow => Utility.IsOSWindows7OrNewer, 140internal 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 (31)
146Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 147Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 188Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 189Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 311if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 319if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 327if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 335if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 420if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 424if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 428if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 432if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 488var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 519if (Utility.IsOSVistaOrNewer && _chromeInfo.GlassFrameThickness != default(Thickness) && _isGlassEnabled) 546SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 586if (!Utility.IsFlagSet(wp.flags, (int)SWP.NOSIZE)) 680bool canMinimize = Utility.IsFlagSet((int)dwStyle, (int)WS.MINIMIZEBOX); 681bool canMaximize = Utility.IsFlagSet((int)dwStyle, (int)WS.MAXIMIZEBOX); 682bool canSize = Utility.IsFlagSet((int)dwStyle, (int)WS.THICKFRAME); 792Utility.SafeDeleteObject(ref hrgn); 800if (null != wp && !Utility.IsFlagSet(wp.Value.flags, (int)SWP.NOSIZE)) 870Utility.SafeDeleteObject(ref hrgn); 913Utility.SafeDeleteObject(ref hrgn); 943if (!Utility.IsOSVistaOrNewer) 980if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 985if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 990if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 995if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 1149if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero)
System\Windows\Standard\MessageWindow.cs (1)
187Utility.SafeDestroyWindow(ref hwnd);
System\Windows\Standard\NativeMethods.cs (14)
1593Utility.SafeRelease(ref cp); 1620Utility.SafeRelease(ref _cp); 2054return (_left << 16 | Utility.LOWORD(_right)) ^ (_top << 16 | Utility.LOWORD(_bottom)); 2319if (!Utility.IsOSVistaOrNewer) 2327if (!Utility.IsOSWindows7OrNewer) 2527if (Utility.IsOSVistaOrNewer && IsThemeActive()) 2548if (!Utility.IsOSVistaOrNewer) 2564Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2571Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2579Assert.IsTrue(Utility.IsOSVistaOrNewer); 2586Assert.IsTrue(Utility.IsOSWindows7OrNewer); 3016var metrics = Utility.IsOSVistaOrNewer 3186if (!Utility.IsOSVistaOrNewer)
System\Windows\SystemParameters.cs (1)
5674_windowGlassColor = Standard.Utility.ColorFromArgbDword(color);
System\Windows\Window.cs (2)
2611if (Standard.Utility.IsOSWindows10OrNewer) 2635if(!Standard.Utility.IsOSWindows11OrNewer) return;