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

Automatically/programatically closing a form (SendBackButtonPressed)

$
0
0

Hi All,

I have a challenge: I wish to a page when an error is found during the processing of the data. Firstly I open up a menu page, once an option has been selected a results page will be displayed on success. Upon failure (especially exception handling from attached hardware devices) I wish to display a helpful error message page and upon the back button I wish to return to the menu page - NOT the results page. I have tried a number of solutions including the DisplayAlert and custom page options using the MessageCenter. However I just cannot seem to get my application to skip back over the results page to the menu page. I have even found the SendBackButtonPressed method that is documented but appears nowhere in the Xamarin.Forms code :-(

Has anyone an idea how I might achieve this?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>