Select in xamarin forms, what would it be like?

0

I'm creating a contact form in xamarin, and should have an option for the user to select the desired purpose, ie in html there would be a select tag with all option , so which tags are used for to create this in xamarin?

    
asked by anonymous 15.02.2018 / 14:08

2 answers

0

So in a search here in the xamarin documentation I found what is used to replace select in xamarin , thus select with% % required would look like this:

<Picker x:Name="pckFinalidade" HorizontalOptions="FillAndExpand" Title="Escolha a finalidade">
                    <Picker.Items>
                        <x:String>CORREÇÃO DE ERRO</x:String>
                        <x:String>MELHORIA DE SISTEMA</x:String>
                        <x:String>NOVA FUNCIONALIDADE</x:String>
                        <x:String>NOVO RELATÓRIO/ETIQUETA</x:String>
                        <x:String>OBRIGAÇÕES FISCAIS</x:String>
                        <x:String>MIGRAÇÃO DE SISTEMA</x:String>
                    </Picker.Items>
                </Picker>
    
15.02.2018 / 17:25
2

No Android and Xamarin.droid is known as Spinner , in ios I did not find anything about.

Here is a discussion of Spinner in Forms : link . Here's a lib to implement this in Forms (which is suggested in the discussion above): link

There is also the% official% of Picker , but the design does not look very cool (in Xamarin , for example, a Android is used with the options, not a AlertDialog itself) link (Have images to see how it is)

    
15.02.2018 / 14:16