Minimize window with NoResize mode on

◇◆丶佛笑我妖孽 提交于 2019-12-06 19:55:06

问题


I have a WPF application, where Window property ResizeMode is set on NoResize. Hence maximize and minimize button is hidden.

Is there a way to add minimize button? Because I don't want to allow user just resize window in order to not deform controls on form. But minimize window is useful function.


回答1:


Set ResizeMode="CanMinimize". This avoids window resizing and enables minimize button.



来源:https://stackoverflow.com/questions/9048877/minimize-window-with-noresize-mode-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!