How to detect what page is on top?

I want to detect the type of the page on top of the stack(the current opened page) with xamarin.forms. What I want to do is preventing the user from opening the same page again; ie: he can't open page A if it's already opened, He can open it only if he only opened some page X before it. So I'm trying to get the current page type to check it with the page's type the user is trying to open.

Best Answers

Answers

Sign In or Register to comment.