Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Exception while clearing Listview selectedItem in 1.2.3 pre 3

$
0
0

Hi,

Today I upgraded from 1.2.2 pre to 1.2.3 pre 3. I had below code to clear the selected ListView item in my MasterPage.

listView.ClearValue(ListView.SelectedItemProperty);

Though above line won't actually clear the background color of the selected item, but I was able to select the same item again. But in 1.2.3 pre-3, after clearing the selected item, ListView.SelectedItem event was called again and null reference exception was thrown. Hence I removed the above line. But, now I am unable to select the selected item again. It's little annoying.

How to clear the selected ListView item in MasterPage?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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