How to make radio boxes in XAML (Xamarin Forms PCL)

左心房为你撑大大i 提交于 2019-12-23 17:57:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!