How to use Radiobuttons in Xamarin Cross Platform?

Asked

Viewed 283 times

1

I’m a beginner in the universe Xamarin. How to insert RadioButton for "Male" and "Female" in Cross Platform in the shampoo?

1 answer

1


The RadioButton is dependent on the platform. You will have to do yours, or use one already made by other programmers.

If you choose to use this xaml would be the following:

//No seu elemento do form
xmlns:custom="clr-namespace:XFormsRadioButton.CustomControls;assembly=XFormsRadioButton"

<custom:BindableRadioGroup x:Name="MyRadiouGroup" 
     ItemsSource="{Binding Path=Sexos}" 
     SelectedIndex="{Binding SexoSelecionado}" VerticalOptions="Start" />

Browser other questions tagged

You are not signed in. Login or sign up in order to post.