Xamarin.forms: [UWP] Xamarin Forms List View SelectedItem is not working when bound to ObservableCollection in UWP

Created on 12 Jun 2018  路  7Comments  路  Source: xamarin/Xamarin.Forms

Description

Steps to Reproduce

  1. Use a listview
  2. Bind ItemsSource to an observableCollection already containing at least 2 items
  3. Bind SelectedItem to a property in the view-model
  4. Update the observable collection for example by a timer event(just add some items some time later)
  5. Try to select one of the items that was added later.

Expected Behavior

SelectedItem should be updated with the selected item like in Android sample

Actual Behavior

Selected Item is updated with null when in UWP sample

Basic Information

  • Version with issue: 3.0.0.561731
  • Last known good version: 2.3.4.247
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:

    • Android: 8.1

    • UWP: 17134

Reproduction Link

https://github.com/MrMentos/ListViewTest

Android sample: working as expected
UWP/Xamarin Forms sample: with issue

UWP only sample: working as expected

regression UWP bug

All 7 comments

I am Facing same kind of issue and i have reported this issue 3 days ago(#2996).
It is working in XF 2.4.0.275 - pre3, 3.0.0.482510 version.

I have the same issue.
Tested using using 3.1.0-pre2 & 3.1.0-pre4

@PureWeen @samhouts In which version will i get this issue fixed?

Reverted to 2.5.1.527436 just now.
Code working again.
_Dang 48 hours debugging._

It'll be in the upcoming 3.1 release

@PureWeen any estimates when the 3.1 will be released?

Was this page helpful?
0 / 5 - 0 ratings