这正如标题所暗示的那样。我已将我的Xamarin Forms项目更新为1.6 NetStandard项目,现在我的SfListView上的tapped事件无法正常工作(它根本不会触发)。
有没有人对可能出现的问题或面对这样的事情有任何建议?
修改
这是SfListView的xaml代码:
<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>
这个结构在更新之前正在运行。我使用行为进行项目选择。
答案 0 :(得分:1)
我们已经检查过报告的查询“SfListView ItemTapped事件在更新NetStandard库后没有触发”。遗憾的是,报告的问题并未发生在我们的最后,并且ItemTapped事件按预期触发。
供您参考,我们附上了下面的工作样本链接。
示例链接:http://www.syncfusion.com/downloads/support/directtrac/190562/ze/SfListViewSample-670965361
您能否在我们的样品中检查您的设备是否也会重现? 如果是这样,请与您分享以下详细信息?
您也可以分享加载SfListView项目的模板的份额吗?