65 references to Utility
PresentationFramework (65)
src\Framework\System\Windows\Shell\WindowChrome.cs (3)
195(value) => Utility.IsThicknessNonNegative((Thickness)value)); 216if (!Utility.IsThicknessNonNegative(thickness)) 249(value) => Utility.IsCornerRadiusValid((CornerRadius)value));
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (48)
102if (Utility.IsPresentationFrameworkVersionLessThan4) 202Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 203Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 254Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 255Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 405if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 413if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 421if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 429if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 439if (Utility.IsPresentationFrameworkVersionLessThan4) 448if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 457if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 466if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 475if (!Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 516if (Utility.IsPresentationFrameworkVersionLessThan4) 536Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 569Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 592Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 697if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 701if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 705if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 709if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 769var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 800if (Utility.IsOSVistaOrNewer && _chromeInfo.GlassFrameThickness != default(Thickness) && _isGlassEnabled) 831SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 879if (!Utility.IsFlagSet(wp.flags, (int)SWP.NOSIZE)) 914Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 929Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 935Assert.Implies(_window.WindowState == WindowState.Maximized, Utility.IsOSWindows7OrNewer); 956Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 964Assert.IsTrue(Utility.IsOSWindows7OrNewer); 976Assert.IsTrue(Utility.IsPresentationFrameworkVersionLessThan4); 1074bool canMinimize = Utility.IsFlagSet((int)dwStyle, (int)WS.MINIMIZEBOX); 1075bool canMaximize = Utility.IsFlagSet((int)dwStyle, (int)WS.MAXIMIZEBOX); 1076bool canSize = Utility.IsFlagSet((int)dwStyle, (int)WS.THICKFRAME); 1198Utility.SafeDeleteObject(ref hrgn); 1206if (null != wp && !Utility.IsFlagSet(wp.Value.flags, (int)SWP.NOSIZE)) 1276Utility.SafeDeleteObject(ref hrgn); 1327Utility.SafeDeleteObject(ref hrgn); 1361if (!Utility.IsOSVistaOrNewer) 1398if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Top)) 1403if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Left)) 1408if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Bottom)) 1413if (Utility.IsFlagSet((int)_chromeInfo.NonClientFrameEdges, (int)NonClientFrameEdges.Right)) 1540if (Utility.IsPresentationFrameworkVersionLessThan4) 1559if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero)
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
240Utility.SafeDestroyWindow(ref hwnd);
src\Framework\System\Windows\Standard\NativeMethods.cs (12)
1688Utility.SafeRelease(ref cp); 1724Utility.SafeRelease(ref _cp); 2171return (_left << 16 | Utility.LOWORD(_right)) ^ (_top << 16 | Utility.LOWORD(_bottom)); 2468if (!Utility.IsOSVistaOrNewer) 2476if (!Utility.IsOSWindows7OrNewer) 2793if (Utility.IsOSVistaOrNewer && IsThemeActive()) 2819if (!Utility.IsOSVistaOrNewer) 2850Assert.IsTrue(Utility.IsOSVistaOrNewer); 2862Assert.IsTrue(Utility.IsOSWindows7OrNewer); 3620var metrics = Utility.IsOSVistaOrNewer 3892if (!Utility.IsOSVistaOrNewer)
src\Framework\System\Windows\SystemParameters.cs (1)
6269_windowGlassColor = Standard.Utility.ColorFromArgbDword(color);