Exemple #1
0
 void OnFilterValueChanged(object sender, string filter)
 {
     if (FilterUpdated != null)
     {
         FilterUpdated.Invoke(currentlyExpandedExpander.Content, filter);
     }
 }
Exemple #2
0
        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
            }
        }
Exemple #3
0
 public void Refresh()
 {
     FilterUpdated?.Invoke(this, EventArgs.Empty);
 }
Exemple #4
0
 private void FileterContent_FilterUpdated(object sender, EventArgs e)
 {
     FilterUpdated?.Invoke(this, EventArgs.Empty);
 }
Exemple #5
0
 /// <summary>
 /// Fires the FilterUpdated event
 /// </summary>
 public void FireFilterUpdated()
 {
     FilterUpdated?.Invoke(this, new EventArgs());
 }