Hi,
I was trying to give tap gesture inside a tool tip template but it was not working. Below is the code snippet:
<chart:ColumnSeries.TooltipTemplate>
<DataTemplate x:Name="template">
<Frame WidthRequest="120" BindingContext="NewPageViewModel" VerticalOptions="FillAndExpand" Padding="0" HasShadow="true" BorderColor="Transparent">
<StackLayout Spacing="0">
<ListView x:Name="list" ItemsSource="{Binding CanceledList}" RowHeight="45" SeparatorColor="#e9e9e9" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" >
<Image Source="dotInfo.png" WidthRequest="15"
HeightRequest="15"
Margin="5,8,0,0"
VerticalOptions="Start"
HorizontalOptions="Start" />
<StackLayout Orientation="Vertical" Spacing="0">
<StackLayout Orientation="Horizontal">
<Label Text="{Binding FlightName}" Margin="0,5,0,0" FontSize="Small" FontAttributes="Bold"></Label>
<Label Text="{Binding FlightNo}" Margin="0,5,0,0" FontSize="Small"></Label>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="{Binding Guests} " FontSize="Small"></Label>
<Label Text="Guests" FontSize="Small"></Label>
</StackLayout>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Button Text="View Flights"
TextColor="#2774AE"
HeightRequest="30"
FontSize="Small"
Command="{Binding ViewFlightsCommand}"
BackgroundColor="Maroon"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
>
<!-- <Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding ViewFlightsCommands}"/>
</Label.GestureRecognizers>-->
</Button>
</StackLayout>
</Frame>
</DataTemplate>
</chart:ColumnSeries.TooltipTemplate>
The tap gesture is currently commented in the above code. I have tried with label and button, none of them are working.