0

Currently, I am working on a Windows 10 Universal Apps. I would like to let user to manipulate a ListView, such as delete and reorder items. I found some solutions online,such as this but the solutions only work on Desktop App.

CanDragItems = "True" 
IsSwipeEnabled = "True"
ReorderMode = “Enabled”

However, we would like to seek for a solution on mobile phone too.At least we can let the user to delete some items by themselves.
Thanks.

Community
  • 1
  • 1
YJ Chen
  • 119
  • 7

2 Answers2

0

I will suggest you to handle the list or collection you bind to the listview at code behind. That will be the most reliable way.

Take the reorder as example: if we use linq to query your backend source with "order by" and re-bind it onto the listview, you get it reordered.

Alan Yao - MSFT
  • 3,284
  • 1
  • 17
  • 16
  • Thanks Alan. However, we want to let the users to edit the ListView by themselves. For example, they can drag and draw an item to some place, then we can rebind the listview at code behind. The drag and draw do not work in mobile phone emulator but work fine in desktop universal app. – YJ Chen Jul 09 '15 at 01:15
0

For Phone, you have to use the ListViewReorderMode enumeration. For example:

ReorderMode = ListViewReorderMode.Enabled

and

ReorderMode = ListViewReorderMode.Disabled.

These are from the Code-Behind.

Kyle Humfeld
  • 1,887
  • 4
  • 23
  • 28