Browse Source

Merge pull request #6187 from amwx/ItemsRepeater_MoveItems

Allow moving items in ItemsRepeater
repro/outsys-sizing-issue
Steven Kirk 5 years ago
committed by Dan Walmsley
parent
commit
16ceff91a9
  1. 5
      src/Avalonia.Layout/ElementManager.cs

5
src/Avalonia.Layout/ElementManager.cs

@ -325,7 +325,10 @@ namespace Avalonia.Layout
break;
case NotifyCollectionChangedAction.Move:
throw new NotImplementedException();
int size = args.OldItems != null ? args.OldItems.Count : 1;
OnItemsRemoved(args.OldStartingIndex, size);
OnItemsAdded(args.NewStartingIndex, size);
break;
}
}
}

Loading…
Cancel
Save