Is it possible to emulate border-collapse (ala CSS) in a WPF ItemsControl?

后端 未结 3 1412
执念已碎
执念已碎 2021-02-13 11:28

I\'m styling the items in a WPF ListBox, and want to put a border around each item. With BorderThickness set to 1, for example, the top-bottom borders

3条回答
  •  渐次进展
    2021-02-13 12:14

    You may add

     Margin="0,0,0,-1" SnapsToDevicePixels="True"
    

    to the border definition

提交回复
热议问题