Bug 28520 - [UWP] ListView ItemSelected event & SelectedItem property only fires once
Summary: [UWP] ListView ItemSelected event & SelectedItem property only fires once
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows (show other bugs)
Version: 2.3.5
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-03-28 23:43 UTC by Matthew Leibowitz
Modified: 2017-10-05 18:17 UTC (History)
8 users (show)

See Also:
Tags: windows, functional, listview, ac, uwp
Is this bug a regression?: ---
Last known good build:

{SelectedItem}=null not working (341.71 KB, application/x-zip-compressed)
2015-03-29 00:47 UTC, Matthew Leibowitz
Sample Project (372.16 KB, application/octet-stream)
2015-07-21 07:25 UTC, Parmendra Kumar

Description Matthew Leibowitz 2015-03-28 23:43:57 UTC
On Windows Phone 8.1 (Runtime) the ItemSelected event only fires once. If a navigation occurs, going back still does not trigger the event.

This works fine for WP8 Silverlight.
Comment 1 Matthew Leibowitz 2015-03-29 00:46:13 UTC
An update :

This is more of a problem of the ListView not being able to update the view when the SelectedItem binding property is set to null.

I have attached a project:
Clicking the Clear Selection button should unselect the list item.

I did not test iOS, but it does not work on WPSL/WPRT/Android
Comment 2 Matthew Leibowitz 2015-03-29 00:47:38 UTC
Created attachment 10542 [details]
{SelectedItem}=null not working
Comment 3 Stephane Delcroix 2015-06-22 04:55:10 UTC
this will be fixed in 1.4.4
Comment 4 Parmendra Kumar 2015-07-21 07:23:13 UTC
I have checked this issue with Xamarin.Forms 1.4.4-pre3 and observed that 

1. On Android phone After clicking on Clear button the selection doesn't unselected.

2. On WinPhone I am getting Exception: 

'System.IO.FileNotFoundException' occurred in Microsoft.Band.Portable.Sample.DLL
'System.Exception' occurred in Microsoft.Band.Portable.Sample.Phone.exe

Screencast: http://www.screencast.com/t/iqkwf5sk3

WinPhone AppOutput Log: https://gist.github.com/Parmendrak/6d72a408f6161497a46b

Could you please let me know Is this a separate bug or I have missed anything?

Comment 5 Parmendra Kumar 2015-07-21 07:25:33 UTC
Created attachment 12130 [details]
Sample Project

Here is sample project.
Comment 6 Paul DiPietro [MSFT] 2017-06-19 15:34:17 UTC
Using that reproduction (moving the code into a new project to be used against UWP in particular) it seems like this is still a thing where setting it to null isn't firing off the ListView's PropertyChanged event. Checked against the latest 2.3.6-nightly.
Comment 7 Chris King 2017-06-23 18:43:20 UTC
David, Windows 8.1 bug over to you for routing.
Comment 8 David Ortinau [MSFT] 2017-06-23 18:50:52 UTC
According to Paul it's still occuring on UWP, so we'll put it in the work queue.

Note You need to log in before you can comment on or make changes to this bug.