Add ContentPage to TabbedPage but hide it in the Navigation bar

ISUJoeISUJoe Member ✭✭
edited July 10 in Xamarin.Forms

I have a search page that allows a user to search for an item and then click it to open the item's page. However, since I recently switched to tabbed navigation, I've run into some issues. Firstly, since I'm using tabbed navigation, I can no longer use await Navigation.PopAsync(page) to pop that item page from the stack and go back to the search page. So my question is, is there a way I can add the object's content page as a child of the tabbed navigation, so that the tab bar appears at the bottom of the page, but there's no button to click in the tabs to go directly to the object page.

For reference, here's an Image. I'd like the tabbed bar to have 3 tabs, with one tab hidden for the object page, similar to how Spotify handles tabbed navigation.

Best Answer

  • ISUJoeISUJoe ✭✭
    Accepted Answer

    Solved this by creating the page in code.

    var navigationPage = new NavigationPage(new itemSearch(list1, list2)); navigationPage.IconImageSource = "icons8-search-30.png"; navigationPage.Title = "Search"; Children.Add(navigationPage);

Answers

  • ISUJoeISUJoe Member ✭✭
    Accepted Answer

    Solved this by creating the page in code.

    var navigationPage = new NavigationPage(new itemSearch(list1, list2)); navigationPage.IconImageSource = "icons8-search-30.png"; navigationPage.Title = "Search"; Children.Add(navigationPage);

Sign In or Register to comment.