17 references to DpiHelper
PresentationFramework (17)
System\Windows\Shell\WindowChromeWorker.cs (13)
410
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
488
mousePosWindow =
DpiHelper
.DevicePixelsToLogical(mousePosWindow, dpi.DpiScaleX, dpi.DpiScaleY);
528
DpiHelper
.DeviceRectToLogical(windowPosition, dpi.DpiScaleX, dpi.DpiScaleY),
529
DpiHelper
.DevicePixelsToLogical(mousePosScreen, dpi.DpiScaleX, dpi.DpiScaleY));
817
double topLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
833
double topRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
841
double bottomLeftRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
849
double bottomRightRadius =
DpiHelper
.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
966
Thickness deviceGlassThickness =
DpiHelper
.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.DpiScaleY);
971
Thickness windowResizeBorderThicknessDevice =
DpiHelper
.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
1081
Size logicalSize =
DpiHelper
.DeviceSizeToLogical(new Size(rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY);
1088
Point deviceTopLeft =
DpiHelper
.LogicalPixelsToDevice(logicalTopLeft, dpi.DpiScaleX, dpi.DpiScaleY);
1089
Point deviceBottomRight =
DpiHelper
.LogicalPixelsToDevice(logicalBottomRight, dpi.DpiScaleX, dpi.DpiScaleY);
System\Windows\SystemCommands.cs (1)
70
ShowSystemMenuPhysicalCoordinates(window,
DpiHelper
.LogicalPixelsToDevice(screenLocation, dpi.DpiScaleX, dpi.DpiScaleY));
System\Windows\SystemParameters.cs (3)
5717
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
5742
Size frameSizeInDips = Standard.
DpiHelper
.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
5744
double captionHeightInDips = Standard.
DpiHelper
.DevicePixelsToLogical(new Point(0, captionHeight), SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0).Y;