How to create Checkboxes in Xamarin Forms

Are you looking for checkboxes tutorials for Xamarin Forms?

In the post, you will learn how to include checkboxes in your Xamarin Forms with samples.

 

You’ll be surprised, checkboxes are easy to implement. Here are the steps.

 

Step 1:

The first step is to right-click on your Solution. Then go to Manage NuGet Packages for Solution.

 

Step 2:

On the browse tab, type xlabs forms. Look for XLabs.Forms by XLabs Team.

 

Step 3:

Then install on each project in your solution.

 

Step 4:

Add the xmlns namespace of XLabs.Forms library.

 

Step5:

Start adding the XLabs.Forms Views on your XAML file by using CheckBox keywords.

 

Step 6:

Build and deploy your solution.

And for the online repo of this sample, here’s the link to my GitHub. https://github.com/webmasterdevlin/CheckBoxesDemo

 

And just like that you now have CheckBoxes on your Xamarin Forms. Don’t forget to try it and share this post with others. Happy coding!



2 Comments

  • frederic

    Hi Devlin, i havn t decided yet wether to develop mobile apps with xamarin, html5/Cordova or any third party tools like phonegap, windev or the like.
    What i understand by your post is that xamarin forms, presented as a big step towards multi Platform development, has not implemented yet the basic controls like checkboxes ?

  • Devlin

    Yes, because Xamarin Forms is a tool. It is an abstraction of the Android, iOS, Windows Phone, and Tizen. It means that Xamarin Forms has layouts that the 4 platforms have in common. That being said, some specific native controls are doable through custom renderers. Custom renderers is another way of creating UI in Xamarin Forms.

    Ionic, React Native, Native Scripts most likely fits you if you’re a JavaScript developer. But if your skills is more on C# and .NET, I highly recommend Xamarin.

    Hope this helps you.