question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Window Width/Height in Desktop

See original GitHub issue

Proposal: 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:open
  • Created 3 years ago
  • Reactions:56
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

50reactions
bugproofcommented, Mar 28, 2022

😂 😂 😂 UI library without ability to change window size.

12reactions
marb2000commented, Jun 24, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found