如何在XAML中制作单选框(Xamarin Forms PCL) [英] How to make radio boxes in XAML (Xamarin Forms PCL)

查看:357
本文介绍了如何在XAML中制作单选框(Xamarin Forms PCL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出如何在XAML中制作一个单选按钮-我看到在android中有一种方法可以实现,但是我想知道是否有一种简单的跨平台方法可以实现此功能而无需其他nuget程序包.

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.

推荐答案

根据我的发现,Xamarin中没有任何内置的单选"按钮.

Up to my findings, there is no any in-built Radio button in Xamarin.

直接针对您的答案@Sparkz,有一种方法可以构建自定义单选按钮,但是它正在使用其他nuget包来实现它.

Directly to your answer @Sparkz, there is method to build custom Radio button, but it is using other nuget packages to implement it.

我也遇到了同样的问题,但是我在项目中使用了xamarin Picker而不是单选按钮.您可以从以下链接下载Picker示例:-

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

这篇关于如何在XAML中制作单选框(Xamarin Forms PCL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆