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?
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?
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>
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)