C# WPF how to set location,width and height of the controls programmatically?

后端 未结 6 1255
慢半拍i
慢半拍i 2021-01-01 23:14

I\'m doing my first WPF application. im having problem whereby when my form is maximized or fullscreen, my controls wont resize and just stay in the same location. only the

6条回答
  •  爱一瞬间的悲伤
    2021-01-01 23:24

    For your specific problem, would recommend you to use a DockPanel and place your controls in it. Here's first bing result: WPF Tutorial | Dock Panel

    And as already suggested by flq and blindmeis, do study the layout panels. That will make your life really simpler in WPF.

提交回复
热议问题