Bug 59884 (PickerOneWayToSourceBinding) - Picker does not Support OneWayToSource
Summary: Picker does not Support OneWayToSource
Status: CONFIRMED
Alias: PickerOneWayToSourceBinding
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 2.4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-02 07:37 UTC by Armin Fallah
Modified: 2017-10-04 23:05 UTC (History)
2 users (show)

Tags: Picker, OneWayToSource, Binding, ac
Is this bug a regression?: ---
Last known good build:


Attachments
A simple example (269.81 KB, application/zip)
2017-10-04 20:42 UTC, Armin Fallah
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 59884 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Armin Fallah 2017-10-02 07:37:21 UTC
It appears that Xamarin.Forms.Picker control's SelectedIndex property does not support OneWayToSource binding mode throwing the following exception

Unhandled Exception:

System.Reflection.TargetInvocationException: <Timeout exceeded getting exception details> occurred
Comment 1 Paul DiPietro [MSFT] 2017-10-03 19:36:40 UTC
Can you upload a reproduction project to help us investigate more quickly? Are you experiencing this as a regression in 2.4.0 or is this an issue that has existed prior?
Comment 2 Armin Fallah 2017-10-04 20:42:43 UTC
Created attachment 25113 [details]
A simple example
Comment 3 Armin Fallah 2017-10-04 20:54:33 UTC
Thank you for answer Mr.DiPietro,
I attached a simple example that shows how the bug occurs. There is an explanation commented in MainPage.xaml in the PCL.
Regarding your concern that 2.4.0 might have caused this, unfortunately I did not use OneWayToSource binding mode for Picker's SelectedIndex prior to 2.4.0 so i can't be sure but if I had to guess, I would say that since this is a special case rarely used by the community, no one has noticed it up until now.
Ofcourse I only take it upon myself to report any/all bugs since Xamarin.Forms is one my favourite technologies and i hope to see it complete and as bug-free as possible.
My thanks to you and the Xamarin's team at microsoft ! :)
Comment 4 Paul DiPietro [MSFT] 2017-10-04 23:05:15 UTC
Thank you for the reproduction; I'll set this to confirmed for now until we can look at this further.