3

How can I set a minimum size for the window in WinUI 3?

Problem

GIF Of The Problem

0

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Are there any plans for this feature to be implemented in the future?
@TammyMo Please submit a feature request about this in the Github issues.