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

Cancelling Tab navigation

$
0
0

Hi All,

Is there a way of cancel navigation from one tab to another? I'm aware of the CurrentPageChanged event, but there doesn't seem to be a away to access the previous page or the new page (so I can't even write a "hack" and conditionally switch back to the previous page if certain conditions aren't met).

To give the problem some context - I've written a wizard controller by extending TabbedPage, and am containing each wizard step in a tab of the TabbedPage. I'd like to be able to prevent navigation from one tab to another if input validation fails.

Thanks,
Joe


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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