WPF Grid vs Stackpanel

后端 未结 7 1116
失恋的感觉
失恋的感觉 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 don't think Grid is a better idea.

    for example , if you want to insert a row to existing Grid layout document (in the middle)

    there exising row is 1,2,3,4 , then the requirement is insert new row between 1 and 2.

    then you had to change 2,3,4 to 3,4,5 (find all tag an change....)

    think about if one row have 3 - 5 columns... it's a dirty job to reorder all digital.!!!

提交回复
热议问题