126 references to Add
Microsoft.Maui.Controls (26)
Element\Element.cs (1)
851 case NotifyCollectionChangedAction.Add:
GestureElement.cs (1)
38 case NotifyCollectionChangedAction.Add:
Internals\NotifyCollectionChangedEventArgsExtensions.cs (3)
38 case NotifyCollectionChangedAction.Add: 95 case NotifyCollectionChangedAction.Add: 96 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Add, e.NewItems, e.NewStartingIndex);
Items\MarshalingObservableCollection.cs (1)
72 case NotifyCollectionChangedAction.Add:
Label\Label.cs (2)
316 case NotifyCollectionChangedAction.Add: 337 case NotifyCollectionChangedAction.Add:
LegacyLayouts\Layout.cs (1)
117 new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, InternalChildren));
MultiPage.cs (1)
225 case NotifyCollectionChangedAction.Add:
ObservableList.cs (2)
25 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, index)); 41 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, originalIndex));
ObservableWrapper.cs (2)
180 case NotifyCollectionChangedAction.Add: 189 handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems, outerIndex));
Page\Page.cs (1)
95 InternalChildrenOnCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, InternalChildren));
Picker\Picker.cs (1)
291 case NotifyCollectionChangedAction.Add:
ResourceDictionary.cs (1)
101 case NotifyCollectionChangedAction.Add:
TemplatedItemsList.cs (8)
800 case NotifyCollectionChangedAction.Add: 815 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, newItems, e.NewStartingIndex)); 1008 case NotifyCollectionChangedAction.Add: 1017 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Add, items, e.NewStartingIndex); 1167 case NotifyCollectionChangedAction.Add: 1172 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems[i], e.NewStartingIndex + i)); 1343 case NotifyCollectionChangedAction.Add: 1344 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, ConvertItems(e.NewItems), e.NewStartingIndex);
View\View.cs (1)
123 case NotifyCollectionChangedAction.Add:
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Renderers\ViewRenderer.cs (1)
73 case NotifyCollectionChangedAction.Add:
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\TreeViewItemBase.cs (1)
110if (args.Action is not NotifyCollectionChangedAction.Add and not NotifyCollectionChangedAction.Remove)
PresentationCore (4)
System\Windows\FreezableCollection.cs (3)
208OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index, value); 687OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index-1, value); 745case NotifyCollectionChangedAction.Add:
System\Windows\Ink\StrokeCollection.cs (1)
659args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.Added, e.Index);
PresentationFramework (87)
MS\Internal\Controls\InnerItemCollectionView.cs (2)
217OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, indexV)); 289OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
MS\Internal\Data\CollectionViewGroupRoot.cs (2)
146OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, globalIndex)); 497OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
MS\Internal\Data\CompositeCollectionView.cs (7)
394case NotifyCollectionChangedAction.Add: 400if (args.Action == NotifyCollectionChangedAction.Add) 430if (args.Action == NotifyCollectionChangedAction.Add) 447if (args.Action == NotifyCollectionChangedAction.Add) 462if (args.Action == NotifyCollectionChangedAction.Add) 731case NotifyCollectionChangedAction.Add: 1442case NotifyCollectionChangedAction.Add:
MS\Internal\Data\EnumerableCollectionView.cs (1)
402case NotifyCollectionChangedAction.Add:
System\Windows\Annotations\Annotation.cs (3)
700case NotifyCollectionChangedAction.Add: 754case NotifyCollectionChangedAction.Add: 803case NotifyCollectionChangedAction.Add:
System\Windows\Controls\DataGrid.cs (6)
227case NotifyCollectionChangedAction.Add: 951case NotifyCollectionChangedAction.Add: 4208(action == NotifyCollectionChangedAction.Add) && // An item was added 7290case NotifyCollectionChangedAction.Add: 7435case NotifyCollectionChangedAction.Add: 7696if (e.Action == NotifyCollectionChangedAction.Add)
System\Windows\Controls\DataGridColumnCollection.cs (2)
88case NotifyCollectionChangedAction.Add: 444DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Add, -1, null, newDisplayIndex);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
210case NotifyCollectionChangedAction.Add:
System\Windows\Controls\GridViewColumnCollection.cs (1)
393return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, column, index, count /* actual index*/);
System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (1)
45Debug.Assert(action == NotifyCollectionChangedAction.Add || action == NotifyCollectionChangedAction.Remove,
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
704case NotifyCollectionChangedAction.Add:
System\Windows\Controls\GridViewRowPresenter.cs (1)
372case NotifyCollectionChangedAction.Add:
System\Windows\Controls\ItemCollection.cs (1)
2186case NotifyCollectionChangedAction.Add:
System\Windows\Controls\ItemContainerGenerator.cs (3)
2074ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2396case NotifyCollectionChangedAction.Add: 2519ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0));
System\Windows\Controls\ItemsControl.cs (1)
3717case NotifyCollectionChangedAction.Add:
System\Windows\Controls\MultipleCopiesCollection.cs (2)
49case NotifyCollectionChangedAction.Add: 179OnCollectionChanged(NotifyCollectionChangedAction.Add, CopiedItem, index);
System\Windows\Controls\Panel.cs (1)
689case NotifyCollectionChangedAction.Add:
System\Windows\Controls\Primitives\Selector.cs (3)
874case NotifyCollectionChangedAction.Add: 1108(e.Action == NotifyCollectionChangedAction.Add && 1144case NotifyCollectionChangedAction.Add:
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
382case NotifyCollectionChangedAction.Add:
System\Windows\Controls\TreeView.cs (1)
435case NotifyCollectionChangedAction.Add:
System\Windows\Controls\TreeViewItem.cs (1)
992case NotifyCollectionChangedAction.Add:
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
430OnCollectionChanged(NotifyCollectionChangedAction.Add, null, newItems); 950case NotifyCollectionChangedAction.Add: 1123case NotifyCollectionChangedAction.Add:
System\Windows\Controls\VirtualizingPanel.cs (1)
515case NotifyCollectionChangedAction.Add:
System\Windows\Controls\VirtualizingStackPanel.cs (1)
3667case NotifyCollectionChangedAction.Add:
System\Windows\Data\BindingGroup.cs (1)
1326case NotifyCollectionChangedAction.Add:
System\Windows\Data\BindingListCollectionView.cs (8)
473NotifyCollectionChangedAction.Add, 497NotifyCollectionChangedAction.Add, 643NotifyCollectionChangedAction.Add, 1514case NotifyCollectionChangedAction.Add: 1827case NotifyCollectionChangedAction.Add: 1931forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index + delta); 2310if (e.Action == NotifyCollectionChangedAction.Add) 2448case NotifyCollectionChangedAction.Add:
System\Windows\Data\CollectionView.cs (2)
1084case NotifyCollectionChangedAction.Add: 1979case NotifyCollectionChangedAction.Add:
System\Windows\Data\CompositeCollection.cs (2)
117OnCollectionChanged(NotifyCollectionChangedAction.Add, newItem, addedIndex); 194OnCollectionChanged(NotifyCollectionChangedAction.Add, insertItem, insertIndex);
System\Windows\Data\ListCollectionView.cs (23)
586NotifyCollectionChangedAction.Add, 610NotifyCollectionChangedAction.Add, 818NotifyCollectionChangedAction.Add, 867int toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, newItem, _newItemIndex); 936NotifyCollectionChangedAction.Add, 1283toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, editItem, SourceList.IndexOf(editItem)); 1286NotifyCollectionChangedAction.Add, 1686case NotifyCollectionChangedAction.Add: 1702|| args.Action != NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0) 1738if (args.Action == NotifyCollectionChangedAction.Add && _newItemIndex == -2) 1749adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.NewStartingIndex); 1754if (args.Action != NotifyCollectionChangedAction.Add) 1769case NotifyCollectionChangedAction.Add: 1840if (args.Action != NotifyCollectionChangedAction.Add) 1851effectiveAction = NotifyCollectionChangedAction.Add; 1898case NotifyCollectionChangedAction.Add: 2059args2 = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, args.NewItems, adjustedNewIndex); 2386case NotifyCollectionChangedAction.Add: 2518case NotifyCollectionChangedAction.Add: 2690if (action == NotifyCollectionChangedAction.Add) 2721if (action == NotifyCollectionChangedAction.Add) 3006if (e.Action == NotifyCollectionChangedAction.Add) 3210new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
System\Windows\Documents\DocumentReferenceCollection.cs (1)
68OnCollectionChanged(NotifyCollectionChangedAction.Add, item, count);
System\Windows\Documents\DocumentSequence.cs (1)
726if (args.Action == NotifyCollectionChangedAction.Add)
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
601if (args.Action == NotifyCollectionChangedAction.Add)
System\Windows\ResourceDictionary.cs (1)
1882if (e.Action == NotifyCollectionChangedAction.Add
System.ObjectModel (4)
System\Collections\ObjectModel\ObservableCollection.cs (1)
126OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (3)
67case NotifyCollectionChangedAction.Add: 115case NotifyCollectionChangedAction.Add: 120if (action == NotifyCollectionChangedAction.Add)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
33case NotifyCollectionChangedAction.Add:
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2423case NotifyCollectionChangedAction.Add:
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
590case NotifyCollectionChangedAction.Add: