Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create checkbox in xamarin forms

Tags:

xamarin

I need a checkbox control in xamarin forms, and also the event when the control is check, how can I get this, I am using switch control, But its not having any event when IsChecked as changed, I need to group the checkbox, its not possible in switch control in xamarin forms

like image 543
Suresh Balaraman Avatar asked Dec 15 '14 03:12

Suresh Balaraman


People also ask

How to Add CheckBox in Xamarin Android?

Drag and drop the Check Box control in your Main. axml page. Step 6 - After dragging and dropping it, the Check Box will show up in your app. Step 7 - Next, go to the properties window and edit the text value (Ex- android:text=check) and change the id (Ex- CheckBox android:id="@+id/checkbox").

How do I use xamarin community toolkit?

The toolkit is available as a NuGet package that can be added to any existing or new project using Visual Studio. Open an existing project, or create a new project using the Blank Forms App template. In the Solution Explorer panel, right click on your project name and select Manage NuGet Packages. Search for Xamarin.


1 Answers

The Switch control has a Toggled event that will fire when the state is changed.

Forms does not have a Checkbox control because there is no underlying Checkbox control in each mobile platform for it to map to.

XF Labs (an open source set of extensions for XF) does have a beta checkbox control that may fit your needs.

like image 169
Jason Avatar answered Sep 21 '22 22:09

Jason