internal void OnItemsSourceChanged(NotifyCollectionChangedEventArgs args) { m_cachedSize = GetSizeCore(); CollectionChanged?.Invoke(this, args); }
private void NotifyCollectionItemChanged(NotifyCollectionChangedEventArgs e) { PropertyChanged?.Invoke(this, KnownEventArgs.IndexerPropertyChanged); CollectionChanged?.Invoke(this, e); }
public void Add(BindableObject item) { _items.Add(item); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, Count - 1)); }
protected void OnItemsSourceChanged(NotifyCollectionChangedEventArgs args) { CollectionChanged?.Invoke(this, args); }
public void RemoveAndNotify(IDrawable element) { Remove(element); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, element)); }
public CodeSwitchOptionCollection(CollectionChanged changed, CodeSwitchOption[] value) { AddRange(value); _changed = changed; }
public PaneCollection() { observableCollection.CollectionChanged += (sender, e) => CollectionChanged?.Invoke(this, e); }
void CallCollectionChanged2(NotifyDocumentCollectionChangedEventArgs eventArgs) => CollectionChanged?.Invoke(this, eventArgs);
private void RaiseCollectionReset() { System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => CollectionChanged?.Invoke(this, _resetEvent))); }
public Task Enqueue(Func <Task> func) { _queue.Enqueue(func); return(CollectionChanged?.Invoke() ?? Task.CompletedTask); }
public void Reset() { CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
/// <summary> /// Notify collection has changed. /// </summary> protected void RaiseCollectionChange(object s, NotifyCollectionChangedEventArgs e) { CollectionChanged?.Invoke(s, e); }
public void ProcCollectionChanged() { indexes.Clear(); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
protected virtual void NotifyCollectionChanged(NotifyCollectionChangedEventArgs e) { CollectionChanged?.Invoke(this, e); }
public CodeNotificationExpressionCollection(CollectionChanged changed) { _changed = changed; }
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args) { CollectionChanged?.Invoke(this, args); }
public CodeNotificationStatementCollection(CollectionChanged changed) { _changed = changed; }
public void RaiseCollectionChangedEvent() { CollectionChanged.SafeInvoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs changes) { CollectionChanged?.Invoke(this, changes); }
protected virtual void OnCollectionChanged(string propertyName) { CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add)); }
private void OnCollectionChanged(NotifyCollectionChangedEventArgs e) { CollectionChanged?.Invoke(this, e); }
private void OnListChanged(NotifyCollectionChangedAction action) { // TODO Allow different types CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
public void ResetAndNotify() { Clear(); Box = null; CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
public void AddElement(T element) { Add(element); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
protected virtual void OnCollectionChanged(NotifyCollectionChangedAction action) { CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action)); }
public override void Add(T item) { base.Add(item); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item)); }
public void Insert(int index, BindableObject item) { _items.Insert(index, item); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index)); }
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e) { CollectionChanged?.Invoke(this, e); }
public void Clear() { _items.Clear(); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); }
void ObsItemsSource_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { CollectionChanged?.Invoke(sender, e); }
private void DoCollectionChanged(NotifyCollectionChangedAction action) { CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action)); }
private void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { CollectionChanged.Raise(this, e); }
public CodeNotificationExpressionCollection(CollectionChanged changed, CodeExpression[] value) { AddRange(value); _changed = changed; }
private void _internalList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) => CollectionChanged?.Invoke(sender, e);
public CodeNotificationStatementCollection(CollectionChanged changed, CodeStatement[] value) { AddRange(value); _changed = changed; }
public CodeSwitchOptionCollection(CollectionChanged changed) { _changed = changed; }