How do I remove minimize and maximize from a resizable window in WPF?

后端 未结 7 1164
我寻月下人不归
我寻月下人不归 2020-12-04 12:05

WPF doesn\'t provide the ability to have a window that allows resize but doesn\'t have maximize or minimize buttons. I\'d like to able to make such a window so I can have re

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 12:18

    One way is to set your ResizeMode="NoResize". It will behave like this. enter image description here

    I hope this helps!

提交回复
热议问题