Navigate to another page using PushAsync from ListView inside Popup
See original GitHub issueHi, rotorgames. I wanna thank you first for this awesome plugin. But I’ve got a problem, tho.
So, my case is, i have ListView element inside my PopupPage, and I want to give the OnClick action of the list item so it can be navigate to another page which have to be one stack above the home page (main/root page of the popup). and when ‘Back’ button hit, the screen will switch back to the home/main page.
In PopupPage.xaml.cs, I implement this code for listItem.ItemSelected:
async void OnItemSelected(object sender, SelectedItemChangedEventArgs e){
await Navigation.PushAsync(new FilterResultPage());
}
and I got this error when the function fired
System.InvalidOperationException: PushAsync is not supported globally on Android, please use a NavigationPage.
I think it might be has something to do with Navigation and NavigationPage stuff, I’ve tried some trick, But i still stuck.
Can you help me with this? Thank you so much
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)

Top Related StackOverflow Question
Thanks for your answer @rotorgames, I’m a bit overwhelmed because beside using NavigationPage, I also manage the page using MasterDetailPage, but finally it’s all ok by tried this line:
Thank You.
I have my app running in a MasterDetail page, so in my ViewModel I use @widiarifki line:
Thank’s @widiarifki that really helps