這正如標題所示。我已經將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>
這種結構更新之前的工作。我使用行爲進行項目選擇。
請不要污衊這個問題。 –