I'm using the back icon with the gesture to navigate to the previous page. Following are the code I'm using in the xaml and xaml.cs file.
In Xaml.cs:
public async void SigninPage(object sender, EventArgs args)
{
await Navigation.PopModalAsync();
}
In Xaml:
<Image
Style="{StaticResource HeaderImageStyle}"
Source="ic_back_arrow_xx.png">
<Image.GestureRecognizers>
<TapGestureRecognizer
Tapped="SigninPage"
NumberOfTapsRequired="1">
</TapGestureRecognizer>
</Image.GestureRecognizers>
</Image>
In App.xaml:
<Style x:Key="HeaderImageStyle" TargetType="Image">
<Setter Property="Margin" Value="3" />
<Setter Property="WidthRequest">
<OnIdiom
x:TypeArguments="x:Double"
Phone="25"
Tablet="37"
Desktop="25"/>
</Setter>
<Setter Property="HeightRequest">
<OnIdiom
x:TypeArguments="x:Double"
Phone="25"
Tablet="37"
Desktop="25"/>
</Setter>
</Style>
When clicking on the back arrow the corresponding event is not firing. My Xamarin.Forms version is 4.8.0.1821. Is there any such defect reported for this version?