public void DeleteFilterListItem(object sender, RoutedEventArgs args) { if (!((sender as ContentControl)?.Content is string value)) { return; } FilterList.Remove(value); }
private void DeleteFilterItem(FilterItem filterItem) { FilterList.Remove(filterItem); }