title: WPF TabControl no selected Item on start
body: <p>I am using a WPF tabcontrol to display items which are bound from a viewmodel. </p>
  
  <p>By default on start the first item of  the list is selected but I want no item to be selected on start. I can set the SelectedItem in the OnSelectionChanged event to null then no item is selected on start but then it is no longer possible to manually select a item.</p>
  
  <pre><code>public partial class ProjectScopeMain : Window
  {
    private bool firstStart = true;
  
    public ProjectScopeMain()
    {
      this.Initialized += this.ProjectScopeMain_Initialized;
      this.InitializeComponent();
    }
  
    private void ProjectScopeMain_Initialized(object sender, System.EventArgs e)
    {
      this.TabControlSettings.SelectionChanged += TabControlSettingsOnSelectionChanged;
    }
  
    private void TabControlSettingsOnSelectionChanged(object sender, EventArgs e)
    {
        this.TabControlSettings.SelectedItem = null;
    }
  
    private void ButtonCreate_Click(object sender, System.Windows.RoutedEventArgs e)
    {
      this.Close();
    }
  }
  </code></pre>
  
  <p>My XAML Code. SelectedIndex=-1 does not work</p>
  
  <pre><code>        &lt;customControls:TabControl x:Uid="tabControlSettings" x:Name="TabControlSettings" 
                                     prism:RegionManager.RegionName="{x:Static infrastructure:RegionNames.ProjectScopeTabsRegion}" 
                                     TabStripPlacement="Left" Style="{DynamicResource TabControlStyle}" 
  
                                     ItemContainerStyle="{DynamicResource TabItemVerticalProjectScopeStyle}" SelectedIndex="-1"/&gt;
  </code></pre>