Skip to content

[HDPI] SystemAware controls inside containers anchored with Bottom or Right are messed up. #14034

@kirsan31

Description

@kirsan31

.NET version

.Net9

Did it work in .NET Framework?

Not tested/verified, but I think - NO.

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Not working with .Net8, and I think with oldest too.

Issue description

Form designed and launched with 125% dpi:
Image

If AnchorStyles.Bottom is used then problems are more huge:
Image

Image

This is one of more others issues with anchoring Bottom / Right and HDPI:
#5076
#8157
#10958
#11516
...

Setting:

{
  "configProperties": {
    "System.Windows.Forms.AnchorLayoutV2": true
  }
}

in runtimeconfig.template.json will solve the issues.

Steps to reproduce

TabControlAnchorBug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Anchor/ScalingHDPI issues around anchoring and dockingarea-HDPIHDPI, not specific to Dpi mode of appuntriagedThe team needs to look at this issue in the next triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions