NavigatedToEventArgs

Giorgio Sfiligoi 391 Reputation points
2025-07-25T11:04:48.89+00:00

Environment: MAUI app for Android.

When I navigate to a certain page, I would like to know what was the previous page.

I therefore tried:

    protected override void OnNavigatedTo(NavigatedToEventArgs args)
    {
        base.OnNavigatedTo(args);
        Debug.WriteLine("OnNavigatedTo");
    }

However, the NavigatedToEventArgs does not expose any property o method that tells me where we are navigating from.

By inspecting 'args' with the debugger, I find that it contains:

Non public members: PreviousPage

which indeed addresses my question - but it appears I cannot access it programmatically?

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.