Skip to content

DataGridColumnHeader Vertical Separators #5483

Answered by Gramli
Gramli asked this question in Q&A
Discussion options

You must be logged in to vote

I finally find solution:

The part of the code creates DataGridColumnHeader inside DataGridColumnHeader, so when I set AreSeparatorsVisible property to false, it hides only child DataGridColumnHeader separator.

Both Separators visible:

So solution was to set DataGrid.Styles:

<UserControl.Styles>
      <Style Selector="DataGridColumnHeader.dtgHeader">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="AreSeparatorsVisible" Value="false"/>
      </Style>
    <Style Selector="TextBox.LongText">
      <Setter Property="Background" Value="Transparent"/>…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gramli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant