Xamarin NetStandard SfListview 项目点击事件未触发?

Xamarin NetStandard SfListview Item tapped event not firing?

正如标题所暗示的那样。我已将我的 Xamarin Forms 项目更新为 1.6 NetStandard 项目,现在我的 SfListView 上的点击事件无法正常工作(它根本不会触发)。

有没有人对可能出现的问题或遇到过类似情况有任何建议?

编辑

这是 xaml SfListView 的代码:

<StackLayout HeightRequest="15" Grid.Row="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
    <xForms:SfListView Orientation="Horizontal" ItemSize="128" ItemsSource="{Binding Categories}" SelectionBackgroundColor="Transparent" IsScrollBarVisible="False">
       <xForms:SfListView.ItemTemplate>
          <DataTemplate>
            <cells:CategoryCell />
          </DataTemplate>
       </xForms:SfListView.ItemTemplate>
       <xForms:SfListView.Behaviors>
          <behaviors:SfSelectedItemBehavior Command="{Binding FilterCommand}" />
       </xForms:SfListView.Behaviors>
    </xForms:SfListView>
</StackLayout>

此结构在更新前有效。我使用行为来选择项目。

我们已经检查了我们这边报告的查询“更新 NetStandard 库后 SfListView ItemTapped 事件不会触发”。不幸的是,报告的问题并没有发生在我们这边,并且 ItemTapped 事件按预期被触发。

为了您的参考,我们在下面附上了工作示例 link。

示例 link:http://www.syncfusion.com/downloads/support/directtrac/190562/ze/SfListViewSample-670965361

能否请您检查一下您的设备,我们的示例中是否也重现了该问题? 如果是这样,您能否分享以下详细信息?

  • 报告的问题是发生在特定设备还是所有设备? (能否请您分享您测试设备的详细信息)
  • 是否是特定平台产生的问题?
  • 问题是否出在特定版本的Xamarin.Forms和SfListView? (在我们的示例中,我们使用了 XForms (v2.3.4.280) 和 SfListView(v15.3.0.33))

你也可以分享一下加载 SfListView 项目的模板吗?