xamarin forms xlabs checkbox

1.2k views Asked by At

I am new to Xamarin forms. I was trying to implement Checkboxes in my project.

I referred this link : https://devlinduldulao.pro/how-to-create-checkboxes-in-xamarin-forms/

So, I added the mentioned nuget package and added this line in my xaml page : xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"

These errors came up

Framework resource extraction failed. Item named 'controls/sensorbar/sensorbarcontrol.xaml' of type 'System.IO.PinnedBufferMemoryStream' cannot be added to the resource file because it is not serializable. App.UWP

Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: Xamarin.Forms.Platform.WP8, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null.' App.UWP

And i am not able to get rid of them. Please help

1

There are 1 answers

1
EvZ On BEST ANSWER

This great library is outdated and unfortunately should not be used anymore.
There are few options:

  1. Check how did Checkbox control was implemented in XLabs.Forms.Controls since it is open source project and build your own using.
  2. Check other existing libraries like Forms.Controls
  3. There are also blogposts on this topic like Xamarin.Tip – Build Your Own CheckBox in Xamarin.Forms

Good luck.