Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Picker on SelectedItem / SelectedIndex not changing picker text

$
0
0

I'm trying to change a value of a Picker with the SelectedIndexChanged from another Picker ...

serverPicker.SelectedIndexChanged += (sender, e) => {
    int index = getIndex(serverPicker.SelectedIndex);
    mobilePrefixPicker.SelectedIndex = index;
};

mobilePrefixPicker's SelectedIndex and SelectedItem does change however it isn't reflected on the GUI.

For Android it didn't look like the value have changed however selecting mobilePrefixPicker you can see that the value selected has actually been changed.
For iOS it didn't look like the value have changed and clicking into it it also looks like the selected value haven't been changed.

In both cases while debugging the values of SelectedIndex and SelectedItem have actually changed.

Is this issue a bug? If so is there a workaround?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>