How to add a GridLines to a TreeDataGrid? #18043
-
TreeDataGrid If there are no GridLines, it will be very uncomfortable to visualize, especially if different cells have different background colors. |
Beta Was this translation helpful? Give feedback.
Answered by
msneijders
Jan 24, 2025
Replies: 1 comment 4 replies
-
With some styling: <TreeDataGrid>
<TreeDataGrid.Styles>
<Style Selector=":is(TreeDataGridCell)">
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="0,0,1,1" />
</Style>
</TreeDataGrid.Styles>
</TreeDataGrid> or use TreeDataGridRow for only lines on row level. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
nasterhe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With some styling:
or use TreeDataGridRow for only lines on row level.