Click here to Skip to main content
15,898,222 members
Articles / Programming Languages / C#

Getting Display Information in Windows UI 3

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
3 May 2023CPOL2 min read 7.6K   1  
How to obtain information on the active display in a Windows UI 3 app
I rarely like the size of the application windows for my Win UI 3 apps. Adjusting the size is relatively straightforward with the latest Win Apps SDK, but getting the size of the target display is not at all obvious. This tip shows how to get it, and provides an example of using it.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Jump for Joy Software
United States United States
Some people like to do crossword puzzles to hone their problem-solving skills. Me, I like to write software for the same reason.

A few years back I passed my 50th anniversary of programming. I believe that means it's officially more than a hobby or pastime. In fact, it may qualify as an addiction Smile | :) .

I mostly work in C# and Windows. But I also play around with Linux (mostly Debian on Raspberry Pis) and Python.

Comments and Discussions