Browse Source

Items control removes the logical child correctly.

pull/799/head
Dan Walmsley 10 years ago
parent
commit
c5c09275b5
  1. 2
      src/Avalonia.Controls/ItemsControl.cs

2
src/Avalonia.Controls/ItemsControl.cs

@ -257,7 +257,7 @@ namespace Avalonia.Controls
// when it is removed from the Items collection.
if (container?.ContainerControl != container?.Item)
{
toRemove.Add(container.ContainerControl);
toRemove.Add((container.ContainerControl as ContentPresenter).Child);
}
}

Loading…
Cancel
Save