dotnet / dotnet/maui

Consolidate screen size/density APIs

Open
#6,340 1 comment 0 reactions 0 assignees View on GitHub
area-architecture proposal/underconsideration t/housekeeping ♻︎ Task
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

We currently have two competing APIs for determining display density and screen size - one from Essentials (with the `DisplayInfo` struct) and another in WindowHandler (using `GetDisplayDensity()`). Which is confusing, especially since they have differing opinions on what the density should be when a Window/Screen is not available.

We need to consolidate these APIs to reduce confusion and increase consistency.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.