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

Picker selectedindexchanged event

$
0
0

I have an issue, where if you try to change a picker selectedindex from within the pickers selectedindexchanged event, it does not change the selection on the screen. It does change the actual index value, but not the visible selection. Relevant code below...

private void pickQuestion_SelectedIndexChanged(object sender, EventArgs e)
        {
            var picker = sender as Picker;
            if (picker.SelectedIndex == 1)
            {
                if (ViewModel.currentRecord == null)
                {
                    picker.SelectedIndex = 0;
                    return;
                }
            }
        }

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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