Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

SfListView not detecting swipe image when using prism?

$
0
0

Trying to handle clicking on a image in the leftswipe area. Using prism as below..but tapping on a image does nothing and produces no error.

Any suggestion?

............................
<sync:SfListView.LeftSwipeTemplate> //syncfusion


<Grid.ColumnDefinitions>



</Grid.ColumnDefinitions>



<Image.GestureRecognizers> //NOT WORKING

</Image.GestureRecognizers>






                        </Grid>
                        <Grid
                            Grid.Column="2"
                            BackgroundColor="#009EDA"
                            HorizontalOptions="Fill"
                            VerticalOptions="Fill">
                            <Grid HorizontalOptions="Center" VerticalOptions="Center">
                                <Image
                                    Grid.Row="0"
                                    Grid.Column="0"
                                    BackgroundColor="Transparent"
                                    HeightRequest="35"
                                    Source="site.png"
                                    WidthRequest="35" />
                            </Grid>

                        </Grid>
                    </Grid>
                </DataTemplate>
            </sync:SfListView.LeftSwipeTemplate>

.................................

//VIEW MODEL
public DelegateCommand SelectFavCommand { get; set; }
public ClientsViewModel(INavigationService navigationService, IPageDialogService ipageserve, IEventAggregator ea)
{
_navigationService = navigationService;
SelectFavCommand = new DelegateCommand(SelectFavCommandHandler);
}

    private void SelectFavCommandHandler(object sender)
    {
           //NEVER REACHES HERE
    }

Viewing all articles
Browse latest Browse all 91519

Trending Articles