private void Collection_WrappedValueChanged(object sender, WrappedValueChangedEventArgs e) { if (_filter == null) { return; } _observableCollection.RefreshFilter((AcItemWrapper)sender); }
private void RefreshFilter(AcPlaceholderNew obj) { if (!Loaded) { return; } if (CurrentItem?.Value == obj) { _testMeLater = CurrentItem; return; } _testMeLater = null; var contains = _mainList.OfType <AcItemWrapper>().Any(x => x.Value == obj); var newValue = FilterTest(obj); if (contains != newValue) { _list.RefreshFilter(obj); } }