-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scenario Day] Picker SelectedIndex property not working #7138
Comments
Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32427.455.main]. Not repro on Windows and Android 12. Sample Project: 7138.zip |
@XamlTest This doesn't seem to be working on VS community 17.3.0 preview 2. I downloaded the project you linked and I'm getting this: |
I think this is the same issue as #9150 |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Verified this on Visual Studio Enterprise 17.6.0 Preview 6.0. Repro on Windows 11 and Android emulator (13.0-API 33) with Project: 7138.zip |
I think it's a matter of declaration order. Xaml respects the order in which you set the properties, and in the snippet the selected index is set before the items, at a time there are no items, and is probably coerced back to 0 or -1. |
I'm having this issue as well. I suspect it is due to the fact that I make async calls to populate the ObservableCollections bound to the Pickers and the response just isn't back when the Picker is rendered and the SelectedIndex is trying to be set. We need an event exposed when the ItemSource is bound or populated or something like that. |
Description
Picker SelectedIndex property not working.
Steps to Reproduce
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
Windows SDK 10.0.17134.0, Android 11
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: