title: Change tab on button click event
body: <p>i would like to change to a different tab when i click a button.
  my xaml is as follow:</p>
  
  <pre><code>&lt;TabControl Name="Tabcontrol1" Margin=" 5" SelectedIndex="0"&gt;
              &lt;TabItem Header="Properties" Opacity="1"&gt;
                  &lt;Grid Width="1185" Height="945" Background="Snow" &gt;
  &lt;/Grid&gt;
  &lt;/TabItem&gt;
  &lt;TabItem Header="Others"&gt;
  &lt;Grid&gt;
  &lt;/Grid&gt;
  &lt;/TabItem&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>and my button click event:</p>
  
  <pre><code>    private void BuildButton_Click(object sender, RoutedEventArgs e)
  {
      Tabcontrol1.SelectedIndex = "1";
  }
  </code></pre>
  
  <p>is there something wrong? "Cannot implicitly convert type 'string' to 'int'" appears    </p>