Avalonia.Controls.TreeDataGrid
Avalonia.Controls.TreeDataGrid copied to clipboard
Fix TreeDataGridPresenterBase Replace Regression
This fixes https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/issues/265. The more efficient use of ItemsReplaced
is kept when the old and new items have the same length. Otherwise, the previous behavior is used.
Note that https://github.com/AvaloniaUI/Avalonia/pull/13795 made the same change to VirtualizingStackPanel
that was made to TreeDataGridPresenterBase
which caused the issue. I haven't used the VirtualizingStackPanel
before, so I can't test if it has the same issue.