WPF Grid vs Stackpanel

后端 未结 7 1121
失恋的感觉
失恋的感觉 2020-12-09 18:34

For WPF/Silverlight layout, is it better to use a Grid with lots of rows and columns, or tons of Stackpanels?

7条回答
  •  再見小時候
    2020-12-09 19:13

    I think the Grid is a better idea. I usually set up the general layout with a Grid and use a few stackpanels here and there to do some specific stuff. I also have a feeling that performance is better with Grids and that Grids generally give you more flexibility.

提交回复
热议问题