Hello,
APage can navigate from B or C Page , then how can i know which it is from.
If you use NavigationPage to navigate, you can get the previous page by
List<Page> res = Navigation.NavigationStack.ToList<Page>();
var PreviousPage=res[res.Count-2];
If you use Shell, you can use Navigation events to get previous page by Previous property.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.