Home > Back-end >  How can I add a minimum size in WinUI 3?
How can I add a minimum size in WinUI 3?

Time:06-28

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

Problem

GIF Of The Problem

CodePudding user response:

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.

  • Related