Reputation: 175
I'd like to have a NavigationPage using xamarin forms (iOS and Android), with a footer (footer would be static when the pages move inside the NavigationPage), this footer is NOT a toolbar, I'd like it to be fuly customisable (StackPanel).
On a higher stand point, it means having a Page inside an other page.
I see several approachs, that all needs custom renderer :
Create a custom "ContentPage", with stacked in it a NavigationPage and a StackLayout for the footer...
Customize the NavigationPage itself to display the footer...
Is it even possible ? What would be the best approach ? Did someone succeded to do that ?
PS : I came acrosse this thread that almost achieve this : http://forums.xamarin.com/discussion/36897/put-a-page-inside-another-page#latest
Thx
Upvotes: 0
Views: 2183
Reputation: 1616
This can definitely be done, but not by putting a ContentPage in a ContentPage. You never really want to have a ContentPage inside a ContentPage unless it's a Navigation/MasterDetail/Tabbed page, eg A ContentPage can go in TabbedPage. It might be possible but it's not standard probably come back to bite you in the future.
There's a few options:
All those are possible, it's up to you in which to implement, depending on your personal time/knowledge/budget etc.
Thanks
Upvotes: 1