//change the current filter to the given new one private void ChangeCurrentFilter(IImageFilter newFilter) { ComboBox filterComboBox = ((System.Windows.Controls.ComboBox) this.FindName("FilterSelectComboBox")); var filter = filterManager.GetFilterByName((string)filterComboBox.SelectedItem); this.currentFilter = filter; DisplayCurrentFilterSettings(); }