C#C
C#3y ago
r2d25551

❔ Navigation.PushModalAsync() not modal

I am trying to popup a modal ConetPage using:

await Navigation.PushModalAsync(new DetailsPage());


From a class inheritance of:
MainPage = new AppShell();

Sadly neither of these worked:
await Application.Current.MainPage.Navigation.PushModalAsync(popup);
await Shell.Current.Navigation.PushModalAsync(popup);


During a button event I am trying to display another page in modal form and wait for the user response. This page is based on ContentPage, contains a VerticalStackLayout, ScrollView, and CollectionView.
Was this page helpful?