143 references to Add
PresentationCore (4)
Core\CSharp\System\Windows\FreezableCollection.cs (3)
243OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index, value); 736OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index-1, value); 794case NotifyCollectionChangedAction.Add:
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
695args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.Added, e.Index);
PresentationFramework (87)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (2)
220OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, indexV)); 292OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (2)
154OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, globalIndex)); 505OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (7)
414case NotifyCollectionChangedAction.Add: 421if (args.Action == NotifyCollectionChangedAction.Add) 451if (args.Action == NotifyCollectionChangedAction.Add) 468if (args.Action == NotifyCollectionChangedAction.Add) 483if (args.Action == NotifyCollectionChangedAction.Add) 754case NotifyCollectionChangedAction.Add: 1468case NotifyCollectionChangedAction.Add:
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
409case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Annotations\Annotation.cs (3)
732case NotifyCollectionChangedAction.Add: 786case NotifyCollectionChangedAction.Add: 835case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\DataGrid.cs (6)
231case NotifyCollectionChangedAction.Add: 955case NotifyCollectionChangedAction.Add: 4216(action == NotifyCollectionChangedAction.Add) && // An item was added 7296case NotifyCollectionChangedAction.Add: 7441case NotifyCollectionChangedAction.Add: 7702if (e.Action == NotifyCollectionChangedAction.Add)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (2)
93case NotifyCollectionChangedAction.Add: 450DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Add, -1, null, newDisplayIndex);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
215case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\GridViewColumnCollection.cs (1)
399return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, column, index, count /* actual index*/);
src\Framework\System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (1)
50Debug.Assert(action == NotifyCollectionChangedAction.Add || action == NotifyCollectionChangedAction.Remove,
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
709case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
379case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
2203case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (3)
2088ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2410case NotifyCollectionChangedAction.Add: 2533ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0));
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3658case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (2)
53case NotifyCollectionChangedAction.Add: 183OnCollectionChanged(NotifyCollectionChangedAction.Add, CopiedItem, index);
src\Framework\System\Windows\Controls\Panel.cs (1)
700case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
893case NotifyCollectionChangedAction.Add: 1135(e.Action == NotifyCollectionChangedAction.Add && 1171case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
392case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\TreeView.cs (1)
441case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
996case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
437OnCollectionChanged(NotifyCollectionChangedAction.Add, null, newItems); 957case NotifyCollectionChangedAction.Add: 1130case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
567case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
3607case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Data\BindingGroup.cs (1)
1333case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Data\BindingListCollectionView.cs (8)
485NotifyCollectionChangedAction.Add, 509NotifyCollectionChangedAction.Add, 655NotifyCollectionChangedAction.Add, 1526case NotifyCollectionChangedAction.Add: 1839case NotifyCollectionChangedAction.Add: 1943forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index + delta); 2322if (e.Action == NotifyCollectionChangedAction.Add) 2461case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Data\CollectionView.cs (2)
1099case NotifyCollectionChangedAction.Add: 1995case NotifyCollectionChangedAction.Add:
src\Framework\System\Windows\Data\CompositeCollection.cs (2)
133OnCollectionChanged(NotifyCollectionChangedAction.Add, newItem, addedIndex); 210OnCollectionChanged(NotifyCollectionChangedAction.Add, insertItem, insertIndex);
src\Framework\System\Windows\Data\ListCollectionView.cs (23)
600NotifyCollectionChangedAction.Add, 624NotifyCollectionChangedAction.Add, 832NotifyCollectionChangedAction.Add, 881int toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, newItem, _newItemIndex); 950NotifyCollectionChangedAction.Add, 1297toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, editItem, SourceList.IndexOf(editItem)); 1300NotifyCollectionChangedAction.Add, 1701case NotifyCollectionChangedAction.Add: 1717|| args.Action != NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0) 1753if (args.Action == NotifyCollectionChangedAction.Add && _newItemIndex == -2) 1764adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.NewStartingIndex); 1769if (args.Action != NotifyCollectionChangedAction.Add) 1784case NotifyCollectionChangedAction.Add: 1855if (args.Action != NotifyCollectionChangedAction.Add) 1866effectiveAction = NotifyCollectionChangedAction.Add; 1913case NotifyCollectionChangedAction.Add: 2074args2 = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, args.NewItems, adjustedNewIndex); 2403case NotifyCollectionChangedAction.Add: 2537case NotifyCollectionChangedAction.Add: 2709if (action == NotifyCollectionChangedAction.Add) 2740if (action == NotifyCollectionChangedAction.Add) 3025if (e.Action == NotifyCollectionChangedAction.Add) 3229new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
src\Framework\System\Windows\Documents\DocumentReferenceCollection.cs (1)
77OnCollectionChanged(NotifyCollectionChangedAction.Add, item, count);
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
756if (args.Action == NotifyCollectionChangedAction.Add)
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
616if (args.Action == NotifyCollectionChangedAction.Add)
src\Framework\System\Windows\ResourceDictionary.cs (1)
1870if (e.Action == NotifyCollectionChangedAction.Add
System (6)
compmod\system\collections\objectmodel\observablecollection.cs (1)
217OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index);
compmod\system\collections\specialized\notifycollectionchangedeventargs.cs (5)
72if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 97if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 123if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 151if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 310if (action == NotifyCollectionChangedAction.Add)
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (2)
52else if (e.Action == NotifyCollectionChangedAction.Add) 93else if (e.Action == NotifyCollectionChangedAction.Add)
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (3)
417case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 443case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 604case System.Collections.Specialized.NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelCategoryEntry.cs (1)
147FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, property));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (2)
133this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, insertedValue, index)); 446case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
528this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Add, item, this.Count - 1)); 582this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Add, item, index));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
176if (e.Action == NotifyCollectionChangedAction.Add) 789new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
94case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (3)
285case NotifyCollectionChangedAction.Add: 302new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, 0)); 321case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
360case NotifyCollectionChangedAction.Add: 404case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
294if (e.Action == NotifyCollectionChangedAction.Add)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
416case NotifyCollectionChangedAction.Add: 483case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
241if (e.Action == NotifyCollectionChangedAction.Add
System.Data (20)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (3)
417case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 443case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 604case System.Collections.Specialized.NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelCategoryEntry.cs (1)
147FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, property));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (2)
133this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, insertedValue, index)); 446case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
528this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Add, item, this.Count - 1)); 582this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Add, item, index));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
176if (e.Action == NotifyCollectionChangedAction.Add) 789new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategory.cs (1)
94case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (3)
285case NotifyCollectionChangedAction.Add: 302new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, 0)); 321case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
360case NotifyCollectionChangedAction.Add: 404case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
294if (e.Action == NotifyCollectionChangedAction.Add)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
416case NotifyCollectionChangedAction.Add: 483case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
241if (e.Action == NotifyCollectionChangedAction.Add
System.Data.Services.Client (2)
System\Data\Services\Client\Binding\BindingObserver.cs (2)
298case NotifyCollectionChangedAction.Add: 416NotifyCollectionChangedAction.Add);
WindowsBase (2)
Base\System\ComponentModel\SortDescriptionCollection.cs (2)
102OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index); 115OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index);