PushAsync is not supported globally on iOS, please use a NavigationPage

前端 未结 4 1087
天命终不由人
天命终不由人 2021-01-05 03:47

Everything is working fine when I am handling the Tap event of a ListView item, but when I use this in a TabbedPage it shows the exception please p

4条回答
  •  天命终不由人
    2021-01-05 04:12

    In this error it goes and find the root page and if we are using Master detail page then we have to set the navigation for Detail page only. So following will be the best solution for this.

    ((RootPage)Application.Current.MainPage).Detail.Navigation.PushAsync(new SearchPage());
    

提交回复
热议问题