Bladeren bron

Fix datagrid performance on attached to tree (#16140)

see #16139

Co-authored-by: Max Katz <[email protected]>
DmitryK 1 jaar geleden
bovenliggende
commit
64e86d3934
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/Avalonia.Controls.DataGrid/DataGrid.cs

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGrid.cs

@@ -2140,7 +2140,7 @@ namespace Avalonia.Controls
             if (DataConnection.DataSource != null && !DataConnection.EventsWired)
             {
                 DataConnection.WireEvents(DataConnection.DataSource);
-                InitializeElements(false /*recycleRows*/);
+                InitializeElements(true /*recycleRows*/);
             }
         }