private void catBar_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ViewModel.ChangeCategory((int)((sender as ListBox).SelectedItem as TabItem).Value);
 }