从datagrid中的行中的选定单元格中删除边框

Sas*_*iel 7 wpf xaml styles

正如你在Jesse Furher周围的图片中看到的那样是一条黑色边框线,我怎样才能删除所有细胞的那条线?

例

Roh*_*ats 26

在DataGrid资源中添加此样式,选择边框将消失 -

<DataGrid>
  .
  .
  <DataGrid.Resources>
    <Style TargetType="DataGridCell">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    </Style>
  </DataGrid.Resources>
  .
  .
</DataGrid>
Run Code Online (Sandbox Code Playgroud)