Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to add XLabs RadioButton Group to View

$
0
0

Hi,

Im trying to implement the @MitchMilam Radio Button control from XLabs here

https://github.com/XLabs/Xamarin-Forms-Labs/tree/master/src/Forms/XLabs.Forms/Controls

Ive implemented the renderer in the Droid project, as well as the 2 classes for the shared project. My implementation in my App.cs looks like this:

    var buttonGroup = new BindableRadioGroup();
    var btn = new CustomRadioButton();
    btn.Text = "I am a button";
    btn.Checked = true;
    var btnList = new ObservableCollection();
    btnList.Add(btn);
    buttonGroup.Items = btnList;

    new ContentPage
    {
            Title = "Radio Buttons",
            Content = buttonGroup
    },

Thanks!


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>