private void ListSorter(object sender, RoutedEventArgs e) { TabList.UnselectAll(); var text = (sender as Button).Content; ResetAllButtonBorders(); ResetTabInfoFields(); switch (text) { case "Bass": TabList.ItemsSource = crudManager.RetrieveBassTabs(); BassButton.BorderBrush = Brushes.AliceBlue; break; case "Drums": TabList.ItemsSource = crudManager.RetrieveDrumTabs(); DrumsButton.BorderBrush = Brushes.AliceBlue; break; case "Guitar": TabList.ItemsSource = crudManager.RetrieveGuitarTabs(); GuitarButton.BorderBrush = Brushes.AliceBlue; break; case "All": PopulateListBox(); ResetButton.BorderBrush = Brushes.AliceBlue; break; } }