How to use RadioButtons on Xamarin Cross Platform?

1

I am a beginner in the universe Xamarin . How to insert RadioButton to "Male" and "Female" in Cross Platform in xaml?

    
asked by anonymous 17.10.2016 / 19:57

1 answer

1

RadioButton is platform dependent. You'll have to make yours, or use one already made by other programmers .

If you choose to use this xaml would be as follows:

//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" />
    
17.10.2016 / 20:44