18 references to DpiHelper
PresentationFramework (18)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (14)
445
Rect rcLogicalWindow =
DpiHelper
.DeviceRectToLogical(new Rect(rcWindow.Left, rcWindow.Top, rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY);
446
Rect rcLogicalClient =
DpiHelper
.DeviceRectToLogical(new Rect(rcAdjustedClient.Left, rcAdjustedClient.Top, rcAdjustedClient.Width, rcAdjustedClient.Height), dpi.DpiScaleX, dpi.DpiScaleY);
549
Point adjustedTopLeft =
DpiHelper
.DevicePixelsToLogical(
603
windowTopLeft -= (Vector)
DpiHelper
.DevicePixelsToLogical(new Point(adjustedOffset.Left, adjustedOffset.Top), dpi.DpiScaleX, dpi.DpiScaleY);
692
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
774
mousePosWindow =
DpiHelper
.DevicePixelsToLogical(mousePosWindow, dpi.DpiScaleX, dpi.DpiScaleY);
814
DpiHelper
.DeviceRectToLogical(windowPosition, dpi.DpiScaleX, dpi.DpiScaleY),
815
DpiHelper
.DevicePixelsToLogical(mousePosScreen, dpi.DpiScaleX, dpi.DpiScaleY));
1228
double topLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1244
double topRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1252
double bottomLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1260
double bottomRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1389
Thickness deviceGlassThickness =
DpiHelper
.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.DpiScaleY);
1394
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
src\Framework\System\Windows\SystemCommands.cs (1)
103
ShowSystemMenuPhysicalCoordinates(window,
DpiHelper
.LogicalPixelsToDevice(screenLocation, dpi.DpiScaleX, dpi.DpiScaleY));
src\Framework\System\Windows\SystemParameters.cs (3)
6324
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
6353
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
6355
double captionHeightInDips = Standard.
DpiHelper
.DevicePixelsToLogical(new Point(0, captionHeight), SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0).Y;