如何从 UWP (Xamarin Forms) 中的 CollectionView 中删除系统复选框

How to remove system checkboxes from CollectionView in UWP (Xamarin Forms)

我不知道如何删除在 Windows 上的 CollectionView 中将 SelectionMode 设置为 Multiple 时自动生成的复选框。我有一个自定义复选框,所以我不需要默认显示的复选框。也许有人有什么想法?

how to remove the checkbox that is generated automatically when setting the SelectionMode to Multiple

恐怕不能去掉CollectionView的复选框,因为uwp平台匹配的原生控件是GridViewListView基于ItemsLayout属性,您可以修改默认样式以隐藏列表视图或网格视图项目的复选框,如本例 . Unfortunately, xamarin CollectionView's native control does not use the default system internal style, and the style comes from WinUI lib。这意味着我们无法使用样式覆盖对其进行编辑。

根据需求,我们建议您将 SelectionMode 设置为 single,并使用自定义复选框覆盖默认位置。