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