Friday, August 10, 2012

Windows Metro App–ListView reordering

A quick note on enabling reordering of list view items in Metro Apps.

1. In previous version of Windows 8, there was a bug and you could not bind the ListView to an ObservableCollection and have reording work. This has been fixed since the “Windows 8 Release Preview” and you can now use ObservableCollection.

2. For reording to work, it not enough to set “CanReorderItems” to true. You ALSO need to set “AllowDrop” to true.

No comments: