wm_getminmaxinfo在winui 3中使用C#?
问题
由于 winui 3 当前没有设置最小尺寸的功能,因此我必须使用 wm_getminmaxinfo
。
问题
如何指定 wm_getminmaxinfo
在 c#的最小或最大窗口大小中, winui 3 project中?
我需要在 App
类还是 mainWindow
类中设置它?
提前致谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看 this github上的示例。
这是Winui 3窗口的完整示例,该窗口具有指定的最小值和最大宽度和高度:
Check out this example on GitHub.
Here is a full example of a WinUI 3 window with a specified min and max width and height:
有一种方法可以在
更改
方法,如果大小很小或大尺寸,则可以调用 ressize 方法可以设置可用尺寸的方法。这是如何获得AppWindow。There is a way that detect current appwindow's real time size in
Changed
method, and if the size is small or large then specific size you could call Resize method to set avaiable size. And here is documet that how to get appwindow.