WPF MainWindow的TopMost,Resizemode

Topmost -[true,false] The default is false, but if set to true, your Window will stay on top of other windows unless minimized. Only useful for special situations.

WindowState[Maximized,Minimized,Normal] - Controls the initial window state. It can be either Normal, Maximized or Minimized. The default is Normal, which is what you should use unless you want your window to start either maximized or minimized.

ResizeMode - [CanMinimize,CanResize,CanResizeWithGrip,NoResize]This controls whether and how the end-user can resize your window. The default is CanResize, which allows the user to resize the window like any other window, either by using the maximize/minimize buttons or by dragging one of the edges. CanMinimize will allow the user to minimize the window, but not to maximize it or drag it bigger or smaller. NoResize is the strictest one, where the maximize and minimize buttons are removed and the window can't be dragged bigger or smaller.

原文链接: https://www.cnblogs.com/Fred1987/p/6043258.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍;

也有高质量的技术群,里面有嵌入式、搜广推等BAT大佬

    WPF MainWindow的TopMost,Resizemode

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/402287

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年4月19日 上午9:41
下一篇 2023年4月19日 上午9:41

相关推荐