private void FilterTabButtonClickHandler(object sender, RoutedEventArgs e) { RadioButton button = sender as RadioButton; if (button != null) { FilterTab filterTab = FilterTab.GetFilterTab(button); ActivateFilterTab(filterTab); } }