28 references to OneHundredPercentLogicalDpi
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
77
/ (double)ScaleHelper.
OneHundredPercentLogicalDpi
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
45
ScaleConstants(ScaleHelper.
OneHundredPercentLogicalDpi
);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
1960
private int _dpi = ScaleHelper.
OneHundredPercentLogicalDpi
;
1970
_dpi = ScaleHelper.
OneHundredPercentLogicalDpi
;
1985
_imageListCacheByDPI.Add(ScaleHelper.
OneHundredPercentLogicalDpi
, ImageList);
2005
ImageList unscaledImageList = _imageListCacheByDPI[ScaleHelper.
OneHundredPercentLogicalDpi
];
System.Windows.Forms.Primitives (8)
System\Windows\Forms\Internals\ScaleHelper.cs (8)
209
dpi ==
OneHundredPercentLogicalDpi
217
internal static bool IsScalingRequired => InitialSystemDpi !=
OneHundredPercentLogicalDpi
;
270
if (dpi ==
OneHundredPercentLogicalDpi
)
275
double scalingFactor = dpi / (double)
OneHundredPercentLogicalDpi
;
283
internal static Padding ScaleToDpi(Padding logicalPadding, int dpi) => dpi ==
OneHundredPercentLogicalDpi
301
internal static Size ScaleToDpi(Size logicalSize, int dpi) => dpi ==
OneHundredPercentLogicalDpi
311
PInvoke.GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX.SM_CXSMICON,
OneHundredPercentLogicalDpi
),
312
PInvoke.GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX.SM_CXSMICON,
OneHundredPercentLogicalDpi
))
System.Windows.Forms.Tests (3)
DpiHelperTests.cs (3)
17
int expected = (int)Math.Round(value * (ScaleHelper.InitialSystemDpi / (double)ScaleHelper.
OneHundredPercentLogicalDpi
));
27
(int)Math.Round(value.Width * (ScaleHelper.InitialSystemDpi / (double)ScaleHelper.
OneHundredPercentLogicalDpi
)),
28
(int)Math.Round(value.Height * (ScaleHelper.InitialSystemDpi / (double)ScaleHelper.
OneHundredPercentLogicalDpi
)));
System.Windows.Forms.UI.IntegrationTests (11)
Dpi\DpiMessageHelper.cs (1)
10
double factor = newDpi / (double)ScaleHelper.
OneHundredPercentLogicalDpi
;
Dpi\FormDpiTests.cs (8)
16
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
53
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
74
var factor = (float)newDpi / ScaleHelper.
OneHundredPercentLogicalDpi
;
87
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
123
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
144
DpiMessageHelper.TriggerDpiMessage(PInvokeCore.WM_DPICHANGED, form, ScaleHelper.
OneHundredPercentLogicalDpi
);
159
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
191
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
Dpi\ToolStripItemTests.Dpi.cs (2)
17
[InlineData(2 * ScaleHelper.
OneHundredPercentLogicalDpi
)]
18
[InlineData(3.5 * ScaleHelper.
OneHundredPercentLogicalDpi
)]