not navigation page how to push page?

mc 5,426 Reputation points
2023-07-06T03:25:49.06+00:00

I am not using shell just set mainpage

MainPage=new MainPage();

int MainPage I can not use navagation.pushasync

await Navigation.PushAsync(new IndexPage());

but I can pushModal

await Navigation.PushModalAsync(new IndexPage());

how can change page if I can not use Navigation.PushAsync?

I do not want to use navigationPage:MainPage=new NavigationPage(new MainPage());

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Edward J. Boelzner 6 Reputation points
    2023-07-13T21:38:59.4633333+00:00

    Without using a Navigation Page, you can only PushModal. Why don't you want to use one?


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.