Xamarin forms block user back key press <p>In my Xamarin forms application I want to show a confirmation message when user clicks the back button from Main-page. Is there any way to achieve this? I overrided the OnBackButtonPressed method in my MainPage. But still the app is closing while back key press. Here is my code </p> <pre><code>protected override bool OnBackButtonPressed () { //return base.OnBackButtonPressed (); return false; } </code></pre>