Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

View is not loading in iOS if added to navigation page

$
0
0

Hi,

I am trying to load a detail page on to a MasterDetailPage as below.
var displayPage = PageForOption(option);
NavigationManager navMan = new NavigationManager (displayPage);
displayPage.NavManager = navMan;
this.Detail = new NavigationPage (displayPage);
// this.Detail = displayPage;

The above code works in Android. However in iOS, the detailPage is not getting loaded. It calls the constructor of the display Page. However the OnAppearing method of the display page is not called in iOS.
If I directly assign the display page as this.Detail = displayPage, it works. However I don't get the navigation bar.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>