WPF Window - Only allow horizontal resize

后端 未结 8 1092
一生所求
一生所求 2021-01-03 23:02

I want to only allow my WPF window to be resized horizontally. How best can I achieve this?

8条回答
  •  礼貌的吻别
    2021-01-03 23:37

    You could try databinding to the size of the window, and then setting the size back to the old value whenever the vertical dimension is changed.

提交回复
热议问题