Beispiel #1
0
 internal void OnItemsSourceChanged(NotifyCollectionChangedEventArgs args)
 {
     m_cachedSize = GetSizeCore();
     CollectionChanged?.Invoke(this, args);
 }
Beispiel #2
0
 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));
 }
Beispiel #4
0
 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;
 }
Beispiel #7
0
 public PaneCollection()
 {
     observableCollection.CollectionChanged += (sender, e) => CollectionChanged?.Invoke(this, e);
 }
Beispiel #8
0
 void CallCollectionChanged2(NotifyDocumentCollectionChangedEventArgs eventArgs) =>
 CollectionChanged?.Invoke(this, eventArgs);
Beispiel #9
0
 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);
 }
Beispiel #13
0
 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;
 }
Beispiel #18
0
 public void RaiseCollectionChangedEvent()
 {
     CollectionChanged.SafeInvoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
 }
Beispiel #19
0
 protected void OnCollectionChanged(NotifyCollectionChangedEventArgs changes)
 {
     CollectionChanged?.Invoke(this, changes);
 }
 protected virtual void OnCollectionChanged(string propertyName)
 {
     CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add));
 }
Beispiel #21
0
 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));
 }
Beispiel #26
0
 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));
 }
Beispiel #28
0
 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);
 }
Beispiel #31
0
 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;
 }