5 writes to _deviceDpi
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (3)
313
_deviceDpi
= _oldDeviceDpi = ScaleHelper.InitialSystemDpi;
7348
_deviceDpi
= (int)PInvoke.GetDpiForWindow(this);
11476
_deviceDpi
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
778
item._dropDown.
_deviceDpi
= newDpi;
System\Windows\Forms\Form.cs (1)
4523
_deviceDpi
= e.DeviceDpiNew;
29 references to _deviceDpi
System.Windows.Forms (29)
System\Windows\Forms\Control.cs (14)
339
InitializeConstantsForInitialDpi(
_deviceDpi
);
1607
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
_deviceDpi
: ScaleHelper.InitialSystemDpi;
5316
if (_oldDeviceDpi !=
_deviceDpi
&& OsVersion.IsWindows10_1703OrGreater())
5471
fontDpi =
_deviceDpi
;
6372
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
_deviceDpi
);
7346
int old =
_deviceDpi
;
7349
if (old ==
_deviceDpi
)
7354
if (fontDpi !=
_deviceDpi
)
7358
Font fontForDpi = GetScaledFont(localFont,
_deviceDpi
, fontDpi);
7370
RescaleConstantsForDpi(old,
_deviceDpi
);
11458
_oldDeviceDpi =
_deviceDpi
;
11478
if (fontDpi ==
_deviceDpi
)
11490
ScaledControlFont = GetScaledFont(localFont,
_deviceDpi
, fontDpi);
11512
RescaleConstantsForDpi(_oldDeviceDpi,
_deviceDpi
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
34
int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.
_deviceDpi
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
217
? new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
255
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
4322
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight)
5138
_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
_deviceDpi
), RowHeight);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
407
scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(
_deviceDpi
);
412
scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(
_deviceDpi
);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
803
height += SystemInformation.GetBorderSizeForDpi(
_deviceDpi
).Height * 4 + 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
452
if (currentDpi == _parent.
_deviceDpi
)
457
double factor = ((double)currentDpi) / _parent.
_deviceDpi
;
System\Windows\Forms\Form.cs (2)
4522
DpiChangedEventArgs e = new(
_deviceDpi
, m);
4575
|| OnGetDpiScaledSize(
_deviceDpi
, m.WParamInternal.LOWORD, ref desiredSize))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
333
currentAutoScaleDimensions = new SizeF(
_deviceDpi
,
_deviceDpi
);
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
33
return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(
_deviceDpi
), LogicalToDeviceUnits(DefaultHeight));