AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
266 stars 54 forks source link

TreeDataGrid is flickering when using a binding to a task with fallback value #249

Open CodeDevAM opened 8 months ago

CodeDevAM commented 8 months ago

Describe the bug

When a TreeDataGrid uses a TemplateColumn with a binding to a Task that returns a string the display is flickering when the underlaying Collection has a reset event.

In comparison a DataGrid view does not show such an issue.

There is no flickering if the TreeDataGrid is noch bound to a Task.

To Reproduce

Please see atteched example. TreeDataGridFlickering.zip

Expected behavior

I would expect no flickerung if there is no reason because of the actual execution time of the task. I would expect to get a similar visual experience that the DataGrid offers.

Screenshots

https://github.com/AvaloniaUI/Avalonia/assets/125025268/5092fd32-9239-408a-a1f6-7407e7f34388

Environment