MullerA
MullerA

Reputation: 387

Checkboxes in Xamarin.Forms

I’m trying to make a page in my app where a user selects from a list of choices, then presses done to submit what he has selected. I’m using Xamarin.Forms. I directly thought of using checkboxes to achieve this; but apparently Xamarin.Forms doesn’t have checkboxes . Anyone have any suggestions to achieve this? Thanks!

Upvotes: 1

Views: 1316

Answers (3)

Jordy Dieltjens
Jordy Dieltjens

Reputation: 1538

If I understand you correctly you don't seem to be looking for a radiobutton but more for something like a checkbox.

I've used this package: https://github.com/messier16/Forms.Controls to use checkboxes

Make sure to call Messier16Controls.InitAll(); right after Xamarin.Forms.Init(); in your projects. Look a tht AppDelegate.cs code snippet from the sample app:

   global::Xamarin.Forms.Forms.Init();
    Messier16Controls.InitAll();

Upvotes: 1

Mayur Kerasiya
Mayur Kerasiya

Reputation: 206

You can use XLabs as suggested by below answer or you can create you own radio buttons with image and set selected and un-selected images on tap of image

i prefer to use my own radio buttons

Upvotes: 0

Sunny
Sunny

Reputation: 1534

If you want radio buttons you can xlabs their package (https://github.com/XLabs/Xamarin-Forms-Labs/tree/master/src/Forms/XLabs.Forms/Controls/RadioButton)

I'd just use a picker, Xlabs package hasn't been updated in a while so their might be some bugs in the radiobutton

Upvotes: 0

Related Questions