You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
On the TreeDataGrid when one clicks on a row it will only be selected if the user clicks on the rendered column element. For example, if using a TextColumn only clicking on the text will cause the row to select. One should be able to select any part of the row to select it.
To Reproduce
Create a TreeDataGrid with any number of columns.
Click on the white space of the row
Observe that the row is not selected.
Click on the rendered element, such as the text in a column
Observe that the row is selected.
Expected behavior
One should be able to click on any part of a row to select it.
Do you use Fluent theme with Fluent theme styles of TreeDataGrid?
By default, TreeDataGridRow should have a transparent (not null) background, which then can be hittested and trigger selection.
Activity
maxkatz6 commentedon May 30, 2025
Do you use Fluent theme with Fluent theme styles of TreeDataGrid?
By default, TreeDataGridRow should have a transparent (not null) background, which then can be hittested and trigger selection.
maxkatz6 commentedon May 30, 2025
Actually, I don't see background actually having a value there: https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/blob/master/src/Avalonia.Controls.TreeDataGrid/Themes/Generic.axaml#L159-L161
Should be an easy fix/workaround by setting a background on the row.
clintsinger commentedon May 30, 2025
So it turns out I wasn't using the default theme (I had placed it in the wrong part of my app.xaml... I'm still new).
It would still be great if it would work correctly without the theme. Perhaps that's what you are proposing above.