问题
I am trying to find out how to make a radio button in XAML - I see there is a way to do it in android but was wondering if there is a simple cross platform way to do it without needing additional nuget packages.
回答1:
Up to my findings, there is no any in-built Radio button in Xamarin.
Directly to your answer @Sparkz, there is method to build custom Radio button, but it is using other nuget packages to implement it.
I also had the same problem, but I used xamarin Picker in my project instead Radio button. You can download sample of Picker from this link:-
Xamarin.Picker
回答2:
Refer This Link https://github.com/kirtisagar/XamarinFormsRadioButtonXAML it will help you
回答3:
This is the best I have found for the moment by the controls of xamarin.forms, I hope it helps.
XFControls
Here nugets XFControls nuget
回答4:
Here you find a BindableRadioButton
http://puresourcecode.com/page/psc-xamarin-controls-bindableradiobutton-component for all platforms (iOS, Android and UWP).
来源:https://stackoverflow.com/questions/41119006/how-to-make-radio-boxes-in-xaml-xamarin-forms-pcl