Bug 56928 - Picker doesn't show selected item in list
Summary: Picker doesn't show selected item in list
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
Depends on:
Reported: 2017-05-29 10:53 UTC by TheTao
Modified: 2017-06-20 18:09 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description TheTao 2017-05-29 10:53:49 UTC
Building with Xamarin Forms has been a blessing but i only have an issue with the picker element. While previewing, the picker doesn't display the selected index text. I tried it manually and also by using the code <Picker.SelectedIndex>1</Picker.SelectedIndex>, still it's zerojoy...
Comment 1 Paul DiPietro [MSFT] 2017-05-29 17:21:45 UTC
What happens if you add the [Preserve (AllMembers = true)] attribute on the page containing the Picker and/or possibly adjust the linker settings? Do you notice any difference in behavior between Android and iOS? This may or may not be supported by the XF Previewer which I assume you're referring to.
Comment 2 TheTao 2017-05-30 10:33:20 UTC
Thanks Paul, I think the error is the TextColor property of the Picker element. It doesn't change as it's default color is white. When i change the background color to black, i could see the selectedindex text. i don't know why it's happening or maybe it's because i'm previewing with Gorilla Player.
Comment 3 Paul DiPietro [MSFT] 2017-06-20 18:09:06 UTC
We are setting this to resolved/not reproducible as we don't have a reproduction to work with at the moment. If you find this issue is still occurring on the latest prerelease or nightly builds and can provide a minimized reproduction project, please reopen this and attach the project. Thanks!