Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

initialize picker xamarin forms

$
0
0

Hi , I want to initialize my picker , this works fine on UWP , but on Android , it only works the first time and I do not know how to fix this .

    protected async override void OnAppearing()
        {
            base.OnAppearing();
            DataService d = new DataService();
            var locations = await d.GetLocatiosn();


            for (int x = 0; x < locations.Locations.Count(); x++)
            {
                if (locations.Locations[x].LocationID == Settings.DefaultLocation)
                {

                    break;

                }
            }

        }

Viewing all articles
Browse latest Browse all 204402

Latest Images

Trending Articles



Latest Images

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