WPF: when I maximize my window, controls do not resize

风流意气都作罢 提交于 2020-01-05 08:33:09

问题


So when I run my program, and hit the maximize button up in the right corner, my window resizes, but all my controls stay the same size in the page...

If I click a corner or edge of my window and drag to resize, the controls re-size as I would expect.

I have tried playing with the onStateChange handler, but it has not done anything.

Anyone have any ideas how to make controls resize when I maximize my window?

Thanks!


回答1:


When you click on a control, do you see that each side has either a black solid dot or a black circle? Click on those, and solid dots are what side the control is pinned to and if you pin it to all sides it will resize as the window resizes.



来源:https://stackoverflow.com/questions/6930286/wpf-when-i-maximize-my-window-controls-do-not-resize

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