Skip to content

How do you deal with an adaptive window sizing in higher resolutions ? #1001

Answered by BL1NDX3N0N
navarone77 asked this question in Q&A
Discussion options

You must be logged in to vote

What you are describing is a DPI issue. Let's use two fictional monitors for example, both having physical dimensions of 1'x1'. However, their resolutions are different, monitor A is 1024x1024 whereas monitor B is 4096x4096. What has changed? The physical size of the pixels, monitor B having a pixel density 4x higher than monitor A. How do we overcome this? Measuring how many pixels span an inch which luckily is done for you. Taking into account the difference in DPI between different monitors is the first step in making your apps DPI aware and fortunately there are frameworks which can perform the heavy lifting for you.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@navarone77
Comment options

@BL1NDX3N0N
Comment options

Answer selected by gregwoo-microsoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants