Browse Source

Merge pull request #6187 from amwx/ItemsRepeater_MoveItems

Allow moving items in ItemsRepeater
pull/6212/head
Steven Kirk 5 years ago
committed by GitHub
parent
commit
6f509a8ce5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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