lepoco / lepoco/wpfui

DPI awareness not working

Open
#784 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.