xamarin 表单 xlabs 复选框

xamarin forms xlabs checkbox

我是 Xamarin 表单的新手。我试图在我的项目中实现复选框。

我提到了这个 link: https://devlinduldulao.pro/how-to-create-checkboxes-in-xamarin-forms/

所以,我添加了提到的 nuget 包,并在我的 xaml 页面中添加了这一行: xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"

出现了这些错误

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

而且我无法摆脱它们。请帮忙

这个很棒的库已经过时了,不幸的是不应该再使用了。
有几个选项:

  1. 检查 Checkbox 控件是如何在 XLabs.Forms.Controls 中实现的,因为它是开源项目并构建您自己的使用。
  2. 检查其他现有库,例如 Forms.Controls
  3. 也有关于此主题的博文,例如 Xamarin.Tip – Build Your Own CheckBox in Xamarin.Forms

祝你好运。