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

Windows Phone Picker

$
0
0

I have a pretty simple picker which works on iOS and Android as expected, but in Windows Phone appears as an empty box (title does not appear like it does on other platforms), and when selected, crashes the view. Is this a bug or am I not doing something correctly?

` var colorDictionary = new Dictionary<string, Color>
{
{ "Blue", Color.Navy},
{ "Green", Color.Green}
};

        var pickerColor = new Picker
        {
            Title = "Please Select",
            HorizontalOptions = LayoutOptions.FillAndExpand
        };

        foreach (string colorName in colorDictionary.Keys)
        {
            pickerColor.Items.Add(colorName);
        }

`


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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