private void Grid_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     TabViewSelected = (TabViewItem)((Border)sender).DataContext;
 }
 private void Grid_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     TabViewSelected = (TabViewItem)((Border)sender).DataContext;
 }