Custom tabbar Help

Hi I am trying to create a custom renderer on tabbed page from xamarin forms to execute the following layout
I am trying to have button - looking tabbar with menu icon on the same layer level.

Thanks!

Best Answer

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    You can add it by ToolbarItems directly, here is running GIF.

    First of all, change your code in the App.xml like following code.

       MainPage = new NavigationPage(new MainPage());
    

    Then, open your Tabbedpage, add the ToolbarItems achievement.

        public partial class MainPage : TabbedPage
    {
        public MainPage ()
        {
            InitializeComponent ();
            ToolbarItems.Add(new ToolbarItem("Food", "search.png", () =>
            {
                DisplayAlert("INFO", "click", "Ok");
            }));
    
        }
      }
    
  • kimjh3437kimjh3437 Member ✭✭

    Is there way to put that toolbar items on the same level as tabbar tabs ?

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    @kimjh3437
    Are there any updates for this issue? If the reply is helpful, please mark it as an answer, it will help others who have similar issue.

  • kimjh3437kimjh3437 Member ✭✭

    Sorry for the delay I was implementing it and play around with it! I Thank you for the answer!

Sign In or Register to comment.