这正如标题所示。我已经将Xamarin Forms项目更新为1.6 NetStandard项目,而现在我的SfListView上的tapped事件不起作用(它根本不会触发)。Xamarin NetStandard SfListview项目点击事件不开火?
有没有人有什么建议可能是错误的或面临这样的事情?
编辑
这是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>
这种结构更新之前的工作。我使用行为进行项目选择。
请不要污蔑这个问题。 –