Browse Source

remove handling add case.

pull/1639/head
Dan Walmsley 9 years ago
parent
commit
efb8fde1bb
  1. 4
      src/Avalonia.Controls/Presenters/CarouselPresenter.cs

4
src/Avalonia.Controls/Presenters/CarouselPresenter.cs

@ -127,10 +127,6 @@ namespace Avalonia.Controls.Presenters
} }
break; break;
case NotifyCollectionChangedAction.Add:
Panel.Children.InsertRange(e.NewStartingIndex, e.NewItems.OfType<IControl>());
break;
case NotifyCollectionChangedAction.Replace: case NotifyCollectionChangedAction.Replace:
if (!IsVirtualized) if (!IsVirtualized)
{ {

Loading…
Cancel
Save