47 references to EnableDpiChangedHighDpiImprovements
System.Windows.Forms (47)
winforms\Managed\System\WinForms\Application.cs (1)
2635
if (!DpiHelper.
EnableDpiChangedHighDpiImprovements
|| CommonUnsafeNativeMethods.TryFindDpiAwarenessContextsEqual(context, DpiAwarenessContext.DPI_AWARENESS_CONTEXT_UNSPECIFIED)) {
winforms\Managed\System\WinForms\Button.cs (1)
333
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
72
if (!DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\CheckBox.cs (3)
73
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
362
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
381
size.Height = DpiHelper.
EnableDpiChangedHighDpiImprovements
? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of check-box or text
winforms\Managed\System\WinForms\Control.cs (3)
2583
Font newFont = DpiHelper.
EnableDpiChangedHighDpiImprovements
?
11409
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
&& !GetStyle(ControlStyles.UserPaint) && (Properties.GetObject(PropFont) == null)) {
13428
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\Form.cs (3)
5113
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
&& factor < 1) {
5119
Font = DpiHelper.
EnableDpiChangedHighDpiImprovements
?
5131
ResumeAllLayout(this, DpiHelper.
EnableDpiChangedHighDpiImprovements
);
winforms\Managed\System\WinForms\Label.cs (1)
1752
if (!DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\NativeWindow.cs (2)
108
private DpiAwarenessContext windowDpiAwarenessContext = DpiHelper.
EnableDpiChangedHighDpiImprovements
?
597
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
&& windowDpiAwarenessContext != DpiAwarenessContext.DPI_AWARENESS_CONTEXT_UNSPECIFIED) {
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
192
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
4857
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (6)
55
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
94
var padding = DpiHelper.
EnableDpiChangedHighDpiImprovements
? LogicalToDeviceUnits(2) : 2;
96
return Math.Max(height + 2 * padding, DpiHelper.
EnableDpiChangedHighDpiImprovements
? LogicalToDeviceUnits(CYDEF) : CYDEF);
122
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
156
Math.Max(0, size.Height - lineHeight - (DpiHelper.
EnableDpiChangedHighDpiImprovements
? LogicalToDeviceUnits(1) : 1)),
172
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
101
if (!DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
167
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
1984
PaintOutlineWithExplorerTreeStyle(g, r, (DpiHelper.
EnableDpiChangedHighDpiImprovements
&& GridEntryHost!=null) ? this.GridEntryHost.HandleInternal: IntPtr.Zero);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
174
if (_positioned && DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
291
btnDropDown.Size = DpiHelper.
EnableDpiChangedHighDpiImprovements
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
315
btnDialog.Size = DpiHelper.
EnableDpiChangedHighDpiImprovements
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight) : new Size(SystemInformation.VerticalScrollBarArrowHeight, RowHeight);
330
if ((DpiHelper.IsScalingRequired || DpiHelper.
EnableDpiChangedHighDpiImprovements
) && (b.Size.Width != iconsWidth || b.Size.Height != iconsHeight)) {
1107
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
1686
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
3797
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
4080
if (topLevelGridEntries != null && DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
4426
Size sizeBtn = DpiHelper.
EnableDpiChangedHighDpiImprovements
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(this.deviceDpi), RowHeight):
5186
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
5194
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
5198
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
5410
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
6046
if(DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
6098
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
6120
if (!DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
winforms\Managed\System\WinForms\RadioButton.cs (3)
72
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
310
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {
324
size.Height = DpiHelper.
EnableDpiChangedHighDpiImprovements
? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of RadioButton circle or text
winforms\Managed\System\WinForms\ScrollBar.cs (1)
220
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
&& ScaleScrollBarForDpiChange) {
winforms\Managed\System\WinForms\VScrollBar.cs (1)
59
if (DpiHelper.
EnableDpiChangedHighDpiImprovements
) {