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

iOS - MasterDetail not drawing Detail when set to NavigationPage

$
0
0

I have a very weird situation where, on Android and Windows Phone, it works fine, but on iOS, it acts up like some angry fairy.

In my project, the MasterDetailPage's Detail property will not draw the content of a NavigationPage. However if I set it to the actual content, instead of wrapping it in a NavigationPage, it draws without a problem.

So this works on all 3 platforms:

this.Detail = factory.ResolvePage < MainDetailView > ();

but this only works on Android and Windows Phone. Not iOS:

this.Detail = new NavigationPage(factory.ResolvePage < MainDetailView > ());

On iOS, it simply draws nothing. Even if I feed it a single ContentPage with BackgroundColor set to Black, it won't even draw that. It's just a blank white page.

I should mention that this is a bug that has occurred in one of the most recent updates of Xamarin.Forms (+1.3).

Has anyone experienced a similar issue, and if so, have you managed to fix it? Because I've looked through my entire project several times already, and no matter what I change, I cannot use a NavigationPage as Detail.


Viewing all articles
Browse latest Browse all 58056

Trending Articles