DPI awareness not working
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Custom apps created from the template projects as well as the gallery itself are not per monitor dpi aware but only system aware.
The schema uri provided in the app.manifest files wrongly starts with 'https' instead of 'http'. Therefore the schema cannot be resolved and the settings are not applied.
To Reproduce
Check dpi awareness of WPF UI Gallery app with tools like process explorer. It will show 'system aware' and not 'per monitor aware'.
Dragging the app to a different monitor with different dpi, fonts are blurry and metrics are not calculated correctly.
Expected behavior
When dragging the app to a different monitor with different dpi, fonts and metrics should be adjusted automatically.
Screenshots
No response
OS version
Windows 11
.NET version
.NET 6 up
WPF-UI NuGet version
v3.0.0.0 preview 6
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the app.manifest files used by the template projects and the WPF UI Gallery, starting with the schema URI declarations. Verify the manifests resolve the intended schema and build the affected apps. Done means Process Explorer reports per-monitor DPI awareness and the UI adjusts correctly when moved between monitors with different DPI settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100