Avalonia.Controls.TreeDataGrid icon indicating copy to clipboard operation
Avalonia.Controls.TreeDataGrid copied to clipboard

Fix TreeDataGridPresenterBase Replace Regression

Open xLEGiON opened this issue 11 months ago • 0 comments

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.

xLEGiON avatar Feb 26 '24 14:02 xLEGiON