title: How set tab 2 in a xamarin forms Tabbed Page as the default tab on startup
body: <p>I have an app I am working on in xamarin forms it looks like this:</p>
  <p><a href="https://i.stack.imgur.com/CSCrz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CSCrz.png" alt="enter image description here" /></a></p>
  <p>When the app loads the friends tab is the 1st tab to load how do I make it to where the snap tab is the 1st tab to load when the app starts up?</p>
  <p>Here is my xaml code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;TabbedPage xmlns=&quot;http://xamarin.com/schemas/2014/forms&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2009/xaml&quot; 
              xmlns:local=&quot;clr-namespace:AppName;assembly=AppName&quot;
              x:Class=&quot;AppName.HomePage&quot;&gt;
      &lt;TabbedPage.Children&gt;
          &lt;NavigationPage x:Name=&quot;Friends&quot; Title=&quot;Friends&quot; Icon=&quot;firendstab.png&quot;&gt;
              &lt;x:Arguments&gt;
                  &lt;local:FriendPage /&gt;
              &lt;/x:Arguments&gt;
          &lt;/NavigationPage &gt;
          &lt;NavigationPage  x:Name=&quot;Snap&quot; Title=&quot;Snap&quot; Icon=&quot;snaptab.png&quot;&gt;&gt;
              &lt;x:Arguments&gt;
                  &lt;local:CameraPage /&gt;
              &lt;/x:Arguments&gt;
          &lt;/NavigationPage&gt;
          &lt;NavigationPage x:Name=&quot;Notes&quot; Title=&quot;Notes&quot; Icon=&quot;notetab.png&quot;&gt;
              &lt;x:Arguments&gt;
                  &lt;local:NotePage /&gt;
              &lt;/x:Arguments&gt;
          &lt;/NavigationPage&gt;
      &lt;/TabbedPage.Children&gt;
  &lt;/TabbedPage&gt;
  </code></pre>
  <p>heres my code behind:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  
  using Xamarin.Forms;
  
  namespace AppName
  {
      public partial class HomePage : TabbedPage
      {
          public HomePage()
          {
              InitializeComponent();
  
  
  
  
  
  
          }
      }
  }
  </code></pre>
  <p>I've searched google for the past 2 days so I thought it was time to ask!</p>