void OnFilterValueChanged(object sender, string filter) { if (FilterUpdated != null) { FilterUpdated.Invoke(currentlyExpandedExpander.Content, filter); } }
public void ClearFilter(bool suppressChanges = true) { try { // Reset this Filter Group back to default ('All' filter). var allFilter = _items.FirstOrDefault(item => item.IsAllItem); _selectedFilterItem = allFilter; OnPropertyChanged("SelectedFilterItem"); //Invoke Notification event on change. if (!suppressChanges) { FilterUpdated?.Invoke(this, new EventArgs()); } } catch (Exception) { //place to throw an exception } }
public void Refresh() { FilterUpdated?.Invoke(this, EventArgs.Empty); }
private void FileterContent_FilterUpdated(object sender, EventArgs e) { FilterUpdated?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Fires the FilterUpdated event /// </summary> public void FireFilterUpdated() { FilterUpdated?.Invoke(this, new EventArgs()); }