WPF: Grid with column/row margin/padding?

前端 未结 15 1071
梦毁少年i
梦毁少年i 2020-12-07 23:57

Is it easily possible to specify a margin and/or padding for rows or columns in a WPF Grid?

I could of course add extra columns to space things out,

15条回答
  •  無奈伤痛
    2020-12-08 00:36

    You could write your own GridWithMargin class, inherited from Grid, and override the ArrangeOverride method to apply the margins

提交回复
热议问题