Open marchagele opened 7 years ago
@po0kie
To keep BottomBar visible you need to add NavigationPage to BottomNavigationPage's children.
public class CustomBottomNavigation : BottomBarPage
{
public CustomBottomNavigation()
{
Children.Add(new NavigationPage(new CustomPage())
{
Title = "Page 1",
Icon = "ic_page1"
});
Children.Add(new NavigationPage(new CustomPage())
{
Title = "Page 2",
Icon = "ic_page2"
});
Children.Add(new NavigationPage(new CustomPage())
{
Title = "Page 3",
Icon = "ic_page3"
});
}
}
With this approach when you will use Navigation.push(new page()) on your CustomPage your bottomBar will stay visible.
Hello this work only on Ios but not on Android platform..
@sprezat
On my application this approach on both iOS and Android plateforms..
Hi @JordanGout Thanks for your answer. I did exactly the same thing in my app. But with this you don't get navigation within the tabs in Android. From what I read, since the Android does not support multiple navigation stacks, that may not be possible at all.
Let me know if that's the case for you too
Thanks
Is there a way to get the BottomBar visible when Navigation.push(new page()) is used? Or which is the approach to get this working?
Best regards