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

Adding a picker in XAML

$
0
0

I'd like to add a picker control that has the values 1,2,3,4,5.

I tried the following...

        <Picker SelectedIndex="{Binding NewCriterion.Importance}" >
            <Items>
                <x:String>"1"</x:String> 
                <x:String>"2"</x:String>
            </Items>
        </Picker> 

to no avail. The documentation is a bit sparse on how to do this in XAML. Help?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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