public void AddChild(string text)
        {
            NavigationTabItem naviTab = new NavigationTabItem();

            naviTab.Text = text;
            AddChild(naviTab);
        }
 public NavigationTabArgs(int index, int oldIndex, NavigationTabItem tab, NavigationTabItem oldTab)
 {
     SelectedIndex    = index;
     OldSelectedIndex = oldIndex;
     SelectedTab      = tab;
     OldSelectedTab   = oldTab;
     cancel           = false;
 }
 public void AddChild(NavigationTabItem tab)
 {
     tab.MouseLeftButtonDown += tab_MouseLeftButtonDown;
     ContentPanel.Children.Add(tab);
     Children.Add(tab);
 }
 private void tab_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     SelectedTab = (NavigationTabItem)sender;
 }