Browse Source

Don't create items immediately...

...in virtualized ItemsPresenters.
pull/545/head
Steven Kirk 10 years ago
parent
commit
37390e8b33
  1. 6
      src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

6
src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

@ -23,10 +23,8 @@ namespace Avalonia.Controls.Presenters
public ItemVirtualizerSimple(ItemsPresenter owner)
: base(owner)
{
if (Items != null && VirtualizingPanel != null)
{
CreateAndRemoveContainers();
}
// Don't need to add children here as UpdateControls should be called by the panel
// measure/arrange.
}
/// <inheritdoc/>

Loading…
Cancel
Save