Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin.Forms for WPF Not able to clear ListView selection

$
0
0

Hi,

Description:
Create a ListView
Assign a ObservableCollection object to Listview.ItemSource
The collection is displayed on the ListView

experiment 1:
-I change the ListView elements by reassigning a different collection to Listview.ItemSoure. This works fine.
-If I change the collection elements, it gets updated in the ListView. This also works fine.

But,

experiment 2:
-Select an item in ListView.
-After selection, when I try to change the collection (either observable or changing ItemsSource), NotImplementedException being thrown here.

I'm not able to clear the selectedItem in ListView and also not able to update the ListView after an item is selected in the ListView.

Please suggest a solution for this.

Thanks,
Chand


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>