I am stuck at one point in Xamarin.Forms application
On Back button press simply I want to ask user to confirm whether he really wants to exit or not, \"OnBackButton
protected override bool OnBackButtonPressed() { Device.BeginInvokeOnMainThread(async() => { var result = await this.DisplayAlert("Alert!", "Do you really want to exit?", "Yes", "No"); if (result) await this.Navigation.PopAsync(); // or anything else }); return true; }