17 references to DpiHelper
PresentationFramework (17)
System\Windows\Shell\WindowChromeWorker.cs (13)
415
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
493
mousePosWindow =
DpiHelper
.DevicePixelsToLogical(mousePosWindow, dpi.DpiScaleX, dpi.DpiScaleY);
533
DpiHelper
.DeviceRectToLogical(windowPosition, dpi.DpiScaleX, dpi.DpiScaleY),
534
DpiHelper
.DevicePixelsToLogical(mousePosScreen, dpi.DpiScaleX, dpi.DpiScaleY));
822
double topLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
838
double topRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
846
double bottomLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
854
double bottomRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
971
Thickness deviceGlassThickness =
DpiHelper
.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.DpiScaleY);
976
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
1086
Size logicalSize =
DpiHelper
.DeviceSizeToLogical(new Size(rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY);
1093
Point deviceTopLeft =
DpiHelper
.LogicalPixelsToDevice(logicalTopLeft, dpi.DpiScaleX, dpi.DpiScaleY);
1094
Point deviceBottomRight =
DpiHelper
.LogicalPixelsToDevice(logicalBottomRight, dpi.DpiScaleX, dpi.DpiScaleY);
System\Windows\SystemCommands.cs (1)
72
ShowSystemMenuPhysicalCoordinates(window,
DpiHelper
.LogicalPixelsToDevice(screenLocation, dpi.DpiScaleX, dpi.DpiScaleY));
System\Windows\SystemParameters.cs (3)
5721
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
5746
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
5748
double captionHeightInDips = Standard.
DpiHelper
.DevicePixelsToLogical(new Point(0, captionHeight), SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0).Y;