Disable maximize button of WPF window, keeping resizing feature intact

后端 未结 6 1465
遇见更好的自我
遇见更好的自我 2021-01-31 02:13

So WPF windows only have four resize mode options: NoResize, CanMinimize, CanResize and CanResizeWithGrip. Unfortunately, the

6条回答
  •  醉话见心
    2021-01-31 02:29

    If you set

    WindowStyle="ToolWindow"
    

    In your window's properties, it will give you a resizable window with no minimize or maximize buttons at the top. It'll be square looking and the close button is also square, but at least minimize and maximize aren't there!

提交回复
热议问题