dewango / BottomNavigationBarXF

Bottom Navigation Bar for Xamarin Forms
MIT License
187 stars 97 forks source link

Navigation bar still displayed at the top #81

Closed agouriou closed 6 years ago

agouriou commented 6 years ago

Hi and thanks for this component.

I've added the reference to my Portable project. I can see the page, but the bar is still displayed at the top of the page.

There is no compilation error, but the behavior is the one of a standard TabbedPage.

Am I missing something?

<xf:BottomBarPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:TestApp"
         xmlns:xf="clr-namespace:BottomBar.XamarinForms;assembly=BottomBar.XamarinForms"
         x:Class="TestApp.MainPageBottomTab">
<xf:BottomBarPage.Children>
    <local:Page1 />
    <local:Page2 />
    <local:Page3 />
</xf:BottomBarPage.Children>

Thanks

agouriou commented 6 years ago

I was missing the dependency "BottomNavigationBar" in my Nugget packages.

mhdshbk commented 6 years ago

@agouriou Can you please provide the reference to your project, so that I can get a proper idea of implementing this component! Thank you!

agouriou commented 6 years ago

My project is not open source. I've used the example here: https://github.com/thrive-now/BottomNavigationBarXF/tree/master/example-xaml/BottomBarXFExampleXaml

It's working as expected, just make sure to have the following nugget packages:

And the following references (I'm using a PCL project): PCL Project references:

Android project references:

iOS project references: