void OnItemsSourceChanged(bool fromGrouping = false)
        {
            ListProxy.CollectionChanged -= OnProxyCollectionChanged;

            IEnumerable itemSource = GetItemsViewSource();

            if (itemSource == null)
            {
                ListProxy = new ListProxy(new object[0]);
            }
            else
            {
                ListProxy = new ListProxy(itemSource);
            }

            ListProxy.CollectionChanged += OnProxyCollectionChanged;
            OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
        }
Beispiel #2
0
 public ProxyEnumerator(ListProxy proxy)
 {
     _proxy   = proxy;
     _version = proxy._version;
 }
 internal void ForceUpdate()
 {
     ListProxy.Clear();
 }