Please tell me, the architecture of the application on Xamarin Forms is such that the user consistently switches from one page to another.
With the opening of the first page - there were no special problems. In App.xaml.cs added
MainPage = new NavigationPage(new MainPage()); And from the main page MainPage.xaml.cs the user navigates to the list page. Everything is normal here. No problem.
App.Current.MainPage = new Page1(); // без навигации or
await Navigation.PushAsync(new Page1()); // с навигацией or because further when selecting a position from the ListView, the following window should open:
await Navigation.PushAsync(new Page2(e.SelectedItem.ToString())); But, I get this error:
System.InvalidOperationException: PushAsync is not supported globally on Android, please use a NavigationPage.
:(
Re-read a bunch of solutions, tried, but without much success. Many examples consist of only 2 pages. I could not find an example with three or more pages to understand it.
Maybe something I did not consider? Maybe it is not done at all?
I would be very happy to advice! Thank!