Proposal: Window Width/Height in Desktop
See original GitHub issueProposal: Support Window Width/Height when in Desktop
Summary
For WinUI in Desktop apps:
- Support setting Width and Height on
Window
in XAML. - Support setting d:DesignWidth and d:DesignHeight on
Window
in XAML.
<Window Width="1200" Height="600"
d:DesignWidth="1000" d:DesignHeight="500">
Rationale
Many developers doing WinUI in Desktop will have a background in WPF and/or simply not be interested in doing a responsive design – this is “in Desktop” after all. Without the ability to set Window size in a traditional way, I believe adoption will suffer due to too much forced change.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:56
- Comments:26 (7 by maintainers)
Top Results From Across the Web
Is there a way to resize a window to specific sizes (eg. ...
Press Win + = . Enter a width: width. Enter a height: height. After: 400 x 300.
Read more >UX checklist for desktop applications - Win32 apps
UX checklist for desktop applications ... Set a minimum window size if there is a size below which the content is no longer...
Read more >Is it possible to create window larger than screen size in ...
I have an app working on windows 10. And program size is width=1800 and height=900. So if i run this program on 1600x900...
Read more >How do I make an element size relative to the screen?
I will have my header div tag taking up 100% width at top, footer div tag taking up 100% width at bottom, and...
Read more >Screen Resolution ≠ Browser Window
For work, I use Windows computer with a screen width of about 1280px, but I always keep my browsers at about 1080px width...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😂 😂 😂 UI library without ability to change window size.
@JVimes, thanks for opening this request. I believe there should be APIs that allow developers to do this. The APIs should work for both, UWP and Desktop.