Steven Kirk 7 gadi atpakaļ
vecāks
revīzija
cf14976dcc
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/Avalonia.Controls/ItemsControl.cs

+ 1 - 0
src/Avalonia.Controls/ItemsControl.cs

@@ -155,6 +155,7 @@ namespace Avalonia.Controls
         void IItemsPresenterHost.RegisterItemsPresenter(IItemsPresenter presenter)
         void IItemsPresenterHost.RegisterItemsPresenter(IItemsPresenter presenter)
         {
         {
             Presenter = presenter;
             Presenter = presenter;
+            ItemContainerGenerator.Clear();
         }
         }
 
 
         /// <summary>
         /// <summary>