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

后端 未结 6 1246
慢半拍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条回答
  •  旧时难觅i
    2021-01-01 23:19

    you should look at all the different layoutpanels in wpf (Grid, DockPanel, StackPanel, Canvas ...)

    so if you set any properties for your Panel, it behaves different if your LayoutPanel change.

提交回复
热议问题