microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 678 forks source link

Proposal: Adding Min / Max Window Size. #7296

Open AVDAIN opened 2 years ago

AVDAIN commented 2 years ago

Proposal: [Max / Min Window Size]

Adding minimum / maximum window size.

Summary

Method to add a minimum / maximum window size.

Rationale

Scope

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

Important Notes

Open Questions

castorix commented 2 years ago

Saves time because you don't have to develop your own functions for setting the minimization and maximization of the window.

Just handle WM_GETMINMAXINFO

AVDAIN commented 2 years ago

I know this works, but it would be better if there was a better feature.

MEK3DK commented 2 years ago

Saves time because you don't have to develop your own functions for setting the minimization and maximization of the window.

Just handle WM_GETMINMAXINFO

Saves time because you don't have to develop your own functions for setting the minimization and maximization of the window.

Just handle WM_GETMINMAXINFO

If this was the only problem in WinUI, then yes we could live with such a workaround. But this is just yet another issue where you need custom handling. As Avaidn hints at, this should be simple. Such that all developers from now does not have to make workarounds.

codendone commented 2 years ago

I agree this feature would be useful. Until that is available, here are some pointers which may help developers looking for a workaround:

ajsuydam commented 4 months ago

Upvoting!