c# - Best way to unbind wpf listview -


I have WPF listview bound to store objects, objects are added continuously to the collection from remote servers and also Showing in the list view. Now we need this that we should be able to stabilize the list view for some time, it is also that the objects will still be added to the collection, but until we unfreeze it, it appears in the list view. Do not give up (we have freeze and unfreeze button). What is the best way to do this, when the list is bound to collection the collection? How to open the archive and reboot it? And am I still able to filter and sort out when the collection is unbound from the list? Waiting for reply please Reply

Regards Sandeep

You can break the binding in your freeze button handler:

  listView = _list  

at that time it will be frozen. Then set up a compulsive back up in your unfriend handler:

  listView.SetBinding (ListView.ItemsSourceProperty, new binding ("_ list"))  

Hope it helps.


Comments