How can I set a minimum size for the window in WinUI 3?
Asked
Active
Viewed 916 times
1 Answers
1
Currently, there is no MinSize or MaxSize properties yet on the Window class in WinUI3.
A workaround is that using the SetWindowSubclass function to hook WM_GETMINMAXINFO and set the min size.
Please check this Github link: How to set minimum window size (Desktop) which contains more discussion about this.

Roy Li - MSFT
- 8,043
- 1
- 7
- 13
-
Are there any plans for this feature to be implemented in the future? – Jun 27 '22 at 18:45
-
1@TammyMo Please submit a feature request about this in the Github issues. – Roy Li - MSFT Jun 28 '22 at 02:11