WPF: Grid with column/row margin/padding?

前端 未结 15 1086
梦毁少年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:32

    I had similar problem recently in two column grid, I needed a margin on elements in right column only. All elements in both columns were of type TextBlock.

    
        
    
    

提交回复
热议问题