How to Navigate within a TabItem on XCT:TabView Control

David Orakpo 41 Reputation points
2022-02-04T21:16:33.43+00:00

I am working with the TabView from the community toolkit and I am trying to Navigate to another Content Page/view within one of my 3 tabs.

I want to do this and remain on the TabView page. Is this possible? I know how it works for Tabbed Page and for Shell, but these methods do not transfer for TabViews. How does one go about this? Thank you

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,302 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,951 Reputation points
    2022-02-07T01:46:12.903+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    I want to do this and remain on the TabView page. Is this possible?

    What does 'remain on the TabView page' mean? It's available to go back to the previous tabView when navigating to a page. TabView provides SelectedIndex property, you could get and store the value. Then retrive the value and set it for the tabView when coming back.

    If you want to display a page inside the tabView, it's unable to do that. XCT:TabView is just a control which is shown in a page, we cannot put a page in it.

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.