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

Implementing a Page wrapper

$
0
0

I am trying to implement a wrapper around a NavigationPage on iOS and android. My goal is to add a menu to the bottom of the screen on both, similar to iOS tabbed view, but not changing internal pages, it just updates the NavigationPage.
Like this:

Initially I attempted to make a CustomRenderer on NavigationPage, which worked fine for iOS. I manually AddSubview()'d to the NavigationPage on iOS and it all worked out. But I'm worried this won't hold up w/ future xamarin Revs. I then went and did this similarly on android, but android has a lot of problems with adding views to the NavigationRenderer and freezes when you try pushing pages on the stack etc. It seems like it wasn't written to allow this kind of scenario or adding layouts directly to the NavigationRenderer ViewGroup.

Is the correct route to make a custom renderer Page that has a NavigationPage inside of it? Is this even possible to do given various "internal" marked properties on Page?

Thanks


Viewing all articles
Browse latest Browse all 58056

Trending Articles