我有一个 ItemsControl,它使用 aGrid作为ItemsPanelTemplate,并在 上设置 Grid.Column 和 Grid.Row 以ItemContainerStyle在网格中定位数据项
Grid
ItemsPanelTemplate
ItemContainerStyle
有没有办法将网格线添加到网格中,或者用边框填充空白单元格?
现在我已ShowGridLines设置为 True ,这会产生虚线,但是我希望显示水平线,并且我更喜欢实心网格线
ShowGridLines
有相当大量的 XAML,但下面是我的 XAML 布局的屏幕截图:
wpf grid layout xaml gridlines
grid ×1
gridlines ×1
layout ×1
wpf ×1
xaml ×1