Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Disable Dpi Awareness in Winforms project #931

Open
wants to merge 12 commits into
base: v1.0
Choose a base branch
from
Open

Disable Dpi Awareness in Winforms project #931

wants to merge 12 commits into from

Conversation

magedragheb
Copy link

Summary

Controls in Winforms have broken layout due to Dpi Awarness,

"When WPF is loaded into a project, it promotes the process to be System DPI Aware"
source: https://stackoverflow.com/a/36344413/4542599

Solves

Adding [assembly: DisableDpiAwareness] to AssemblyInfo fixes this problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants