Closed FrozenAssassine closed 1 year ago
Sorting in alphabetical order is ready, but reordering the items in the listbox by the user doesn't work.
Try the following properties on the listview in XAML:
CanDragItems="True" CanReorderItems="True" AllowDrop="True" SelectionMode="Single"
I have tried this before and it worked but it didn't update the order in the ObservableCollection<PasswordManagerItem>
(even when I set Mode=TwoWay
). I don't know/found a way how to get the order otherwise.
Oh your are correct. I will take a look at it later.
It actually does update the Observable collection. I now call SaveData in the DragItemsCompleted event and then the sorted collection gets saved to the database.
Ok I had tried exactly the same, and it had not worked. "It doesn't work on my machine!" ;-)
Check the new commit and try it out.
Add a feature to sort the password list