title: How to Navigate to a certain TabbedPage from TapGesture or Button press
body: <p>The Goal: 
  While within a tabbed page I have a frame and a frame tap gesture, while selecting within the frame tap gesture I would like it to navigate to the proper tabbed page as if selecting the tabbed page.</p>
  
  <p>I have tried various navigation methods however they will either have a top back button or not show the bottom tabs, or will not update the lower menu navigation, or will have me go to mainpage and have the first tab selected. </p>
  
  <p>I have a MainPage with 5 tabbed pages.</p>
  
  <p>Example of how my tabbed pages are setup: (using views: in xaml to select the page).</p>
  
  <pre><code>&lt;NavigationPage Title="Offers"&gt;
              &lt;NavigationPage.Icon&gt;
                  &lt;OnPlatform x:TypeArguments="FileImageSource"&gt;
                      &lt;On Platform="iOS" Value="tab_offers.png"/&gt;
                      &lt;On Platform="Android" Value="tab_offers.png"/&gt;
                  &lt;/OnPlatform&gt;
              &lt;/NavigationPage.Icon&gt;
              &lt;x:Arguments&gt;
                  &lt;views:OffersPage /&gt;
              &lt;/x:Arguments&gt;
          &lt;/NavigationPage&gt;
  </code></pre>
  
  <p>The code used to get the tap gesture within the frame.</p>
  
  <pre><code>&lt;Frame BackgroundColor="Green" HeightRequest="32" WidthRequest="112" Padding="0" CornerRadius="8" HasShadow="False"&gt;
  
    &lt;Frame.GestureRecognizers&gt;
       &lt;TapGestureRecognizer Tapped="TapGestureRecognizer_OfferPage" /
    &lt;/Frame.GestureRecognizers&gt;
  
    &lt;Label Text="Earn Now" TextColor="White" FontSize="14" HorizontalOptions="Center" VerticalOptions="Center" FontAttributes="Bold"/&gt;
  &lt;/Frame&gt;
  </code></pre>
  
  <p>Currently the navigation method I am using is the following:</p>
  
  <pre><code>private async void TapGestureRecognizer_OfferPage(object sender, EventArgs e)
          {
  
              await Navigation.PushModalAsync(new NavigationPage(new MainPage()));            
  
          }
  </code></pre>
  
  <p>Essentially, I believe there should be a way to select the tabbed page index or the tabbed page from MainPage. However not sure how to implement it properly.</p>
  
  <p>With the above code it will navigate me back to MainPage however to the first loaded tab. I need it to be on the 4th tab or OffersPage.</p>
  
  <p>Any assistance would be appreciated. </p>