57 references to Utility
PresentationFramework (57)
System\Windows\Appearance\WindowBackdropManager.cs (5)
16WindowBackdropType.Auto => Utility.IsWindows11_22H2OrNewer, 17WindowBackdropType.TabbedWindow => Utility.IsWindows11_22H2OrNewer, 18WindowBackdropType.MainWindow => Utility.IsOSWindows11OrNewer, 19WindowBackdropType.TransientWindow => Utility.IsOSWindows7OrNewer, 139internal static bool IsBackdropEnabled => _isBackdropEnabled ??= Utility.IsWindows11_22H2OrNewer &&
System\Windows\Shell\WindowChrome.cs (3)
194(value) => Utility.IsThicknessNonNegative((Thickness)value)); 215if (!Utility.IsThicknessNonNegative(thickness)) 248(value) => Utility.IsCornerRadiusValid((CornerRadius)value));
System\Windows\Shell\WindowChromeWorker.cs (31)
141Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 142Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 183Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 184Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 306if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 314if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 322if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 330if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 415if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 419if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 423if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 427if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 483var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 514if (Utility.IsOSVistaOrNewer && _chromeInfo.GlassFrameThickness != default(Thickness) && _isGlassEnabled) 541SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 581if (!Utility.IsFlagSet(wp.flags, (int)SWP.NOSIZE)) 675bool canMinimize = Utility.IsFlagSet((int)dwStyle, (int)WS.MINIMIZEBOX); 676bool canMaximize = Utility.IsFlagSet((int)dwStyle, (int)WS.MAXIMIZEBOX); 677bool canSize = Utility.IsFlagSet((int)dwStyle, (int)WS.THICKFRAME); 787Utility.SafeDeleteObject(ref hrgn); 795if (null != wp && !Utility.IsFlagSet(wp.Value.flags, (int)SWP.NOSIZE)) 865Utility.SafeDeleteObject(ref hrgn); 908Utility.SafeDeleteObject(ref hrgn); 938if (!Utility.IsOSVistaOrNewer) 975if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 980if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 985if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 990if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 1144if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero)
System\Windows\Standard\MessageWindow.cs (1)
184Utility.SafeDestroyWindow(ref hwnd);
System\Windows\Standard\NativeMethods.cs (14)
1588Utility.SafeRelease(ref cp); 1615Utility.SafeRelease(ref _cp); 2049return (_left << 16 | Utility.LOWORD(_right)) ^ (_top << 16 | Utility.LOWORD(_bottom)); 2314if (!Utility.IsOSVistaOrNewer) 2322if (!Utility.IsOSWindows7OrNewer) 2522if (Utility.IsOSVistaOrNewer && IsThemeActive()) 2543if (!Utility.IsOSVistaOrNewer) 2559Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2566Assert.IsTrue(Utility.IsWindows11_22H2OrNewer); 2574Assert.IsTrue(Utility.IsOSVistaOrNewer); 2581Assert.IsTrue(Utility.IsOSWindows7OrNewer); 3011var metrics = Utility.IsOSVistaOrNewer 3181if (!Utility.IsOSVistaOrNewer)
System\Windows\SystemParameters.cs (1)
5670_windowGlassColor = Standard.Utility.ColorFromArgbDword(color);
System\Windows\Window.cs (2)
2598if (Standard.Utility.IsOSWindows10OrNewer) 2622if(!Standard.Utility.IsOSWindows11OrNewer) return;