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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|