599 references to NotifyCollectionChangedAction
PresentationCore (17)
Core\CSharp\System\Windows\FreezableCollection.cs (13)
199OnCollectionChanged(NotifyCollectionChangedAction.Reset, 0, null, 0, null); 243OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index, value); 278OnCollectionChanged(NotifyCollectionChangedAction.Remove, index, oldValue, 0, null); 302OnCollectionChanged(NotifyCollectionChangedAction.Remove, index, oldValue, 0, null); 369OnCollectionChanged(NotifyCollectionChangedAction.Replace, index, oldValue, index, value); 736OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index-1, value); 762private void OnCollectionChanged(NotifyCollectionChangedAction action, 777if (action != NotifyCollectionChangedAction.Replace && 778action != NotifyCollectionChangedAction.Move) 791case NotifyCollectionChangedAction.Reset: 794case NotifyCollectionChangedAction.Add: 797case NotifyCollectionChangedAction.Remove: 800case NotifyCollectionChangedAction.Replace:
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (4)
685args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 690args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, e.Removed, e.Index); 695args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.Added, e.Index); 700args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, e.Added, e.Removed, e.Index);
PresentationFramework (385)
src\Framework\MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
171OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 199OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
121OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, 0));
src\Framework\MS\Internal\Annotations\XmlElementCollection.cs (1)
249OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (5)
159OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, value, originalItem, index)); 220OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, indexV)); 292OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index)); 564OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 691OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index));
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (5)
154OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, globalIndex)); 173OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, globalIndex)); 505OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index)); 656OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, newIndex, oldIndex)); 764OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, leafIndex));
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (27)
377OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 414case NotifyCollectionChangedAction.Add: 415case NotifyCollectionChangedAction.Remove: 421if (args.Action == NotifyCollectionChangedAction.Add) 451if (args.Action == NotifyCollectionChangedAction.Add) 457else if (args.Action == NotifyCollectionChangedAction.Remove) 468if (args.Action == NotifyCollectionChangedAction.Add) 476Debug.Assert(args.Action == NotifyCollectionChangedAction.Remove); 483if (args.Action == NotifyCollectionChangedAction.Add) 491Invariant.Assert(args.Action == NotifyCollectionChangedAction.Remove); 505args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 510case NotifyCollectionChangedAction.Replace: 552args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 558case NotifyCollectionChangedAction.Move: 630args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 636case NotifyCollectionChangedAction.Reset: 754case NotifyCollectionChangedAction.Add: 766case NotifyCollectionChangedAction.Remove: 778case NotifyCollectionChangedAction.Replace: 786case NotifyCollectionChangedAction.Move: 803case NotifyCollectionChangedAction.Reset: 1456private void TraceContainerCollectionChange(object sender, NotifyCollectionChangedAction action, object oldItem, object newItem) 1468case NotifyCollectionChangedAction.Add: 1473case NotifyCollectionChangedAction.Remove: 1478case NotifyCollectionChangedAction.Replace: 1483case NotifyCollectionChangedAction.Move: 1490case NotifyCollectionChangedAction.Reset:
src\Framework\MS\Internal\Data\DifferencingCollection.cs (1)
242OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (6)
409case NotifyCollectionChangedAction.Add: 426case NotifyCollectionChangedAction.Remove: 439case NotifyCollectionChangedAction.Replace: 449case NotifyCollectionChangedAction.Move: 484case NotifyCollectionChangedAction.Reset: 519OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\MS\Internal\Data\LiveShapingTree.cs (1)
73RaiseMoveEvent(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move,
src\Framework\MS\Internal\Navigation\JournalEntryStack.cs (1)
31CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\System\Windows\Annotations\Annotation.cs (15)
732case NotifyCollectionChangedAction.Add: 737case NotifyCollectionChangedAction.Remove: 742case NotifyCollectionChangedAction.Replace: 753case NotifyCollectionChangedAction.Move: 757case NotifyCollectionChangedAction.Reset: 786case NotifyCollectionChangedAction.Add: 791case NotifyCollectionChangedAction.Remove: 796case NotifyCollectionChangedAction.Replace: 807case NotifyCollectionChangedAction.Move: 811case NotifyCollectionChangedAction.Reset: 835case NotifyCollectionChangedAction.Add: 840case NotifyCollectionChangedAction.Remove: 845case NotifyCollectionChangedAction.Replace: 856case NotifyCollectionChangedAction.Move: 860case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\DataGrid.cs (32)
231case NotifyCollectionChangedAction.Add: 236case NotifyCollectionChangedAction.Remove: 240case NotifyCollectionChangedAction.Replace: 246case NotifyCollectionChangedAction.Reset: 261visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.Reset); 271if (visibleColumnsChanged && e.Action != NotifyCollectionChangedAction.Move) 660internal void UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex) 955case NotifyCollectionChangedAction.Add: 963case NotifyCollectionChangedAction.Remove: 971case NotifyCollectionChangedAction.Replace: 984case NotifyCollectionChangedAction.Reset: 4153internal void OnSelectedCellsChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems) 4216(action == NotifyCollectionChangedAction.Add) && // An item was added 4223else if ((action == NotifyCollectionChangedAction.Remove) && 5387if (e.Action == NotifyCollectionChangedAction.Reset) 5397if (e.Action == NotifyCollectionChangedAction.Remove || e.Action == NotifyCollectionChangedAction.Replace) 5404else if (e.Action == NotifyCollectionChangedAction.Reset) 7296case NotifyCollectionChangedAction.Add: 7307case NotifyCollectionChangedAction.Remove: 7324case NotifyCollectionChangedAction.Move: 7327case NotifyCollectionChangedAction.Replace: 7331case NotifyCollectionChangedAction.Reset: 7441case NotifyCollectionChangedAction.Add: 7449case NotifyCollectionChangedAction.Remove: 7457case NotifyCollectionChangedAction.Move: 7460case NotifyCollectionChangedAction.Replace: 7469case NotifyCollectionChangedAction.Reset: 7702if (e.Action == NotifyCollectionChangedAction.Add) 7710else if ((e.Action == NotifyCollectionChangedAction.Remove) || (e.Action == NotifyCollectionChangedAction.Replace)) 7725else if (e.Action == NotifyCollectionChangedAction.Reset)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (4)
2057case NotifyCollectionChangedAction.Remove: 2061case NotifyCollectionChangedAction.Replace: 2065case NotifyCollectionChangedAction.Move: 2069case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (11)
93case NotifyCollectionChangedAction.Add: 102case NotifyCollectionChangedAction.Move: 110case NotifyCollectionChangedAction.Remove: 120case NotifyCollectionChangedAction.Replace: 130case NotifyCollectionChangedAction.Reset: 136DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Reset, -1, null, -1); 393DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Move, oldDisplayIndex, null, newDisplayIndex); 405DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Move, oldColumnIndex, null, newColumnIndex); 450DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Add, -1, null, newDisplayIndex); 589DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Remove, removedDisplayIndex, (DataGridColumn)oldColumns[0], -1); 618DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Replace, newDisplayIndex, oldColumn, newDisplayIndex);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (6)
55NotifyCollectionChangedAction.Replace, 215case NotifyCollectionChangedAction.Add: 219case NotifyCollectionChangedAction.Remove: 223case NotifyCollectionChangedAction.Move: 227case NotifyCollectionChangedAction.Replace: 232newArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
src\Framework\System\Windows\Controls\GridViewColumnCollection.cs (5)
269return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, _columns[actualIndex], newIndex, oldIndex, actualIndex); 292return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, list); 313return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, column, index, actualIndex); 399return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, column, index, count /* actual index*/); 419return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newColumn, oldColumn, index, oldColumnActualIndex);
src\Framework\System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (7)
27: base(NotifyCollectionChangedAction.Reset) // NotifyCollectionChangedEventArgs doesn't have 0 parameter constructor, so pass in an arbitrary parameter. 38internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn[] clearedColumns) 47internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn changedItem, int index, int actualIndex) 50Debug.Assert(action == NotifyCollectionChangedAction.Add || action == NotifyCollectionChangedAction.Remove, 62internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn newItem, GridViewColumn oldItem, int index, int actualIndex) 76internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn changedItem, int index, int oldIndex, int actualIndex)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
699case NotifyCollectionChangedAction.Move: 709case NotifyCollectionChangedAction.Add: 717case NotifyCollectionChangedAction.Remove: 722case NotifyCollectionChangedAction.Replace: 731case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (5)
371if (e.Action == NotifyCollectionChangedAction.Move) 379case NotifyCollectionChangedAction.Add: 385case NotifyCollectionChangedAction.Remove: 389case NotifyCollectionChangedAction.Replace: 394case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\ItemCollection.cs (12)
471OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1739OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1986OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 2203case NotifyCollectionChangedAction.Add: 2206goto case NotifyCollectionChangedAction.Reset; 2212case NotifyCollectionChangedAction.Remove: 2214goto case NotifyCollectionChangedAction.Reset; 2222case NotifyCollectionChangedAction.Replace: 2225goto case NotifyCollectionChangedAction.Reset; 2232case NotifyCollectionChangedAction.Move: 2235goto case NotifyCollectionChangedAction.Reset; 2257case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (13)
2088ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2108ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Remove, position, 1, 1)); 2405if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.Reset) 2410case NotifyCollectionChangedAction.Add: 2416case NotifyCollectionChangedAction.Remove: 2422case NotifyCollectionChangedAction.Replace: 2432case NotifyCollectionChangedAction.Move: 2442case NotifyCollectionChangedAction.Reset: 2533ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2578ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Remove, position, 1, containerCount)); 2637ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Replace, position, 1, 1)); 2746ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Move, position, oldPosition, 1, containerCount)); 2787ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset, position, 0, 0));
src\Framework\System\Windows\Controls\ItemsControl.cs (6)
314if (e.Action == NotifyCollectionChangedAction.Reset) 3658case NotifyCollectionChangedAction.Add: 3670case NotifyCollectionChangedAction.Remove: 3686case NotifyCollectionChangedAction.Move: 3717case NotifyCollectionChangedAction.Replace: 3721case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (11)
53case NotifyCollectionChangedAction.Add: 60case NotifyCollectionChangedAction.Move: 67case NotifyCollectionChangedAction.Remove: 74case NotifyCollectionChangedAction.Replace: 81case NotifyCollectionChangedAction.Reset: 183OnCollectionChanged(NotifyCollectionChangedAction.Add, CopiedItem, index); 198OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, CopiedItem, newIndex, oldIndex)); 206OnCollectionChanged(NotifyCollectionChangedAction.Remove, CopiedItem, index); 220OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newItem, oldItem, index)); 436private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 446OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\System\Windows\Controls\Panel.cs (5)
700case NotifyCollectionChangedAction.Add: 703case NotifyCollectionChangedAction.Remove: 706case NotifyCollectionChangedAction.Replace: 709case NotifyCollectionChangedAction.Move: 713case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
356e.Action != NotifyCollectionChangedAction.Reset || columns.Count == 0,
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (3)
153if (e.Action == NotifyCollectionChangedAction.Remove 154|| e.Action == NotifyCollectionChangedAction.Replace) 170else if (e.Action == NotifyCollectionChangedAction.Reset)
src\Framework\System\Windows\Controls\Primitives\ItemsChangedEventArgs.cs (4)
32internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, 45internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, 60public NotifyCollectionChangedAction Action { get { return _action; } } 81NotifyCollectionChangedAction _action;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (12)
893case NotifyCollectionChangedAction.Add: 900case NotifyCollectionChangedAction.Remove: 907case NotifyCollectionChangedAction.Reset: 922case NotifyCollectionChangedAction.Replace: 930case NotifyCollectionChangedAction.Move: 1134if (e.Action == NotifyCollectionChangedAction.Reset || 1135(e.Action == NotifyCollectionChangedAction.Add && 1171case NotifyCollectionChangedAction.Add: 1190case NotifyCollectionChangedAction.Replace: 1202case NotifyCollectionChangedAction.Remove: 1208case NotifyCollectionChangedAction.Move: 1222case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
392case NotifyCollectionChangedAction.Add: 395case NotifyCollectionChangedAction.Remove: 398case NotifyCollectionChangedAction.Replace: 401case NotifyCollectionChangedAction.Move: 405case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\SelectedCellsCollection.cs (1)
76protected override void OnCollectionChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems)
src\Framework\System\Windows\Controls\TabControl.cs (1)
399if (e.Action == NotifyCollectionChangedAction.Remove && SelectedIndex == -1)
src\Framework\System\Windows\Controls\TreeView.cs (5)
421case NotifyCollectionChangedAction.Remove: 422case NotifyCollectionChangedAction.Reset: 429case NotifyCollectionChangedAction.Replace: 441case NotifyCollectionChangedAction.Add: 442case NotifyCollectionChangedAction.Move:
src\Framework\System\Windows\Controls\TreeViewItem.cs (5)
966case NotifyCollectionChangedAction.Remove: 967case NotifyCollectionChangedAction.Reset: 979case NotifyCollectionChangedAction.Replace: 996case NotifyCollectionChangedAction.Add: 997case NotifyCollectionChangedAction.Move:
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (14)
437OnCollectionChanged(NotifyCollectionChangedAction.Add, null, newItems); 445OnCollectionChanged(NotifyCollectionChangedAction.Remove, oldItems, null); 451protected virtual void OnCollectionChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems) 957case NotifyCollectionChangedAction.Add: 961case NotifyCollectionChangedAction.Remove: 965case NotifyCollectionChangedAction.Replace: 969case NotifyCollectionChangedAction.Move: 973case NotifyCollectionChangedAction.Reset: 1124internal void OnColumnsChanged(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex, IList selectedRows) 1130case NotifyCollectionChangedAction.Add: 1134case NotifyCollectionChangedAction.Remove: 1138case NotifyCollectionChangedAction.Replace: 1142case NotifyCollectionChangedAction.Move: 1146case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (4)
567case NotifyCollectionChangedAction.Add: 568case NotifyCollectionChangedAction.Remove: 569case NotifyCollectionChangedAction.Replace: 570case NotifyCollectionChangedAction.Move:
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
3528case NotifyCollectionChangedAction.Remove: 3533case NotifyCollectionChangedAction.Replace: 3538case NotifyCollectionChangedAction.Move: 3542case NotifyCollectionChangedAction.Reset: 3592case NotifyCollectionChangedAction.Remove: 3601case NotifyCollectionChangedAction.Replace: 3607case NotifyCollectionChangedAction.Add: 3616case NotifyCollectionChangedAction.Move: 3650Debug.Assert(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1); 3699ItemsChangedEventArgs newArgs = new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset,
src\Framework\System\Windows\Data\BindingGroup.cs (5)
1333case NotifyCollectionChangedAction.Add: 1337case NotifyCollectionChangedAction.Remove: 1341case NotifyCollectionChangedAction.Move: 1343case NotifyCollectionChangedAction.Replace: 1349case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Data\BindingListCollectionView.cs (28)
465NotifyCollectionChangedAction.Remove, 472NotifyCollectionChangedAction.Remove, 485NotifyCollectionChangedAction.Add, 495NotifyCollectionChangedAction.Move, 509NotifyCollectionChangedAction.Add, 517NotifyCollectionChangedAction.Move, 655NotifyCollectionChangedAction.Add, 807result = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, newItem, toIndex, fromIndex); 1413OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1526case NotifyCollectionChangedAction.Add: 1542case NotifyCollectionChangedAction.Remove: 1552case NotifyCollectionChangedAction.Replace: 1565case NotifyCollectionChangedAction.Move: 1577case NotifyCollectionChangedAction.Reset: 1839case NotifyCollectionChangedAction.Add: 1842case NotifyCollectionChangedAction.Remove: 1845case NotifyCollectionChangedAction.Replace: 1848case NotifyCollectionChangedAction.Move: 1943forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index + delta); 1984forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index + delta); 2001forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, index+delta, args.OldIndex+delta); 2322if (e.Action == NotifyCollectionChangedAction.Add) 2326else if (e.Action == NotifyCollectionChangedAction.Remove) 2461case NotifyCollectionChangedAction.Add: 2466case NotifyCollectionChangedAction.Remove: 2471case NotifyCollectionChangedAction.Replace: 2476case NotifyCollectionChangedAction.Move: 2483case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Data\CollectionContainer.cs (1)
386OnContainedCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\System\Windows\Data\CollectionView.cs (14)
885OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 937if (args.Action != NotifyCollectionChangedAction.Replace && 938args.Action != NotifyCollectionChangedAction.Move) 1099case NotifyCollectionChangedAction.Add: 1107case NotifyCollectionChangedAction.Remove: 1115case NotifyCollectionChangedAction.Replace: 1123case NotifyCollectionChangedAction.Move: 1131case NotifyCollectionChangedAction.Reset: 1930if (args.Action == NotifyCollectionChangedAction.Reset) 1995case NotifyCollectionChangedAction.Add: 2000case NotifyCollectionChangedAction.Remove: 2007case NotifyCollectionChangedAction.Replace: 2012case NotifyCollectionChangedAction.Move: 2019case NotifyCollectionChangedAction.Reset:
src\Framework\System\Windows\Data\CompositeCollection.cs (8)
133OnCollectionChanged(NotifyCollectionChangedAction.Add, newItem, addedIndex); 154OnCollectionChanged(NotifyCollectionChangedAction.Reset); 210OnCollectionChanged(NotifyCollectionChangedAction.Add, insertItem, insertIndex); 255OnCollectionChanged(NotifyCollectionChangedAction.Remove, removedItem, removeIndex); 337OnCollectionChanged(NotifyCollectionChangedAction.Replace, originalItem, value, itemIndex); 512void OnCollectionChanged(NotifyCollectionChangedAction action) 525void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 534void OnCollectionChanged(NotifyCollectionChangedAction action, object oldItem, object newItem, int index)
src\Framework\System\Windows\Data\ListCollectionView.cs (67)
169OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 580NotifyCollectionChangedAction.Remove, 587NotifyCollectionChangedAction.Remove, 600NotifyCollectionChangedAction.Add, 610NotifyCollectionChangedAction.Move, 624NotifyCollectionChangedAction.Add, 632NotifyCollectionChangedAction.Move, 832NotifyCollectionChangedAction.Add, 881int toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, newItem, _newItemIndex); 888NotifyCollectionChangedAction.Remove, 911NotifyCollectionChangedAction.Move, 950NotifyCollectionChangedAction.Add, 980int index = AdjustBefore(NotifyCollectionChangedAction.Remove, _newItem, _newItemIndex); 985NotifyCollectionChangedAction.Remove, 1146NotifyCollectionChangedAction.Remove, 1257NotifyCollectionChangedAction.Remove, 1287NotifyCollectionChangedAction.Move, 1297toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, editItem, SourceList.IndexOf(editItem)); 1300NotifyCollectionChangedAction.Add, 1700case NotifyCollectionChangedAction.Reset: 1701case NotifyCollectionChangedAction.Add: 1702case NotifyCollectionChangedAction.Replace: 1714if (args.Action != NotifyCollectionChangedAction.Reset) 1716if (args.Action != NotifyCollectionChangedAction.Remove && args.NewStartingIndex < 0 1717|| args.Action != NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0) 1730if (args.Action == NotifyCollectionChangedAction.Reset) 1753if (args.Action == NotifyCollectionChangedAction.Add && _newItemIndex == -2) 1762if (args.Action != NotifyCollectionChangedAction.Remove) 1764adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.NewStartingIndex); 1769if (args.Action != NotifyCollectionChangedAction.Add) 1771adjustedOldIndex = AdjustBefore(NotifyCollectionChangedAction.Remove, args.OldItems[0], args.OldStartingIndex); 1784case NotifyCollectionChangedAction.Add: 1791case NotifyCollectionChangedAction.Remove: 1810case NotifyCollectionChangedAction.Move: 1843NotifyCollectionChangedAction effectiveAction = args.Action; 1846effectiveAction = NotifyCollectionChangedAction.Replace; 1855if (args.Action != NotifyCollectionChangedAction.Add) 1857effectiveAction = NotifyCollectionChangedAction.Remove; 1866effectiveAction = NotifyCollectionChangedAction.Add; 1868else if (effectiveAction == NotifyCollectionChangedAction.Move) 1882effectiveAction = NotifyCollectionChangedAction.Remove; 1886effectiveAction = NotifyCollectionChangedAction.Move; 1913case NotifyCollectionChangedAction.Add: 1947case NotifyCollectionChangedAction.Remove: 1984case NotifyCollectionChangedAction.Replace: 2016case NotifyCollectionChangedAction.Move: 2074args2 = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, args.NewItems, adjustedNewIndex); 2075args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, args.OldItems, adjustedOldIndex); 2403case NotifyCollectionChangedAction.Add: 2413case NotifyCollectionChangedAction.Remove: 2423case NotifyCollectionChangedAction.Replace: 2436case NotifyCollectionChangedAction.Move: 2537case NotifyCollectionChangedAction.Add: 2542case NotifyCollectionChangedAction.Remove: 2547case NotifyCollectionChangedAction.Replace: 2552case NotifyCollectionChangedAction.Move: 2559case NotifyCollectionChangedAction.Reset: 2674private int AdjustBefore (NotifyCollectionChangedAction action, object item, int index) 2677if (action == NotifyCollectionChangedAction.Reset) 2709if (action == NotifyCollectionChangedAction.Add) 2740if (action == NotifyCollectionChangedAction.Add) 2764else if (action == NotifyCollectionChangedAction.Remove) 3025if (e.Action == NotifyCollectionChangedAction.Add) 3029else if (e.Action == NotifyCollectionChangedAction.Remove) 3150new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, 3189new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, 3229new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
src\Framework\System\Windows\Documents\DocumentReferenceCollection.cs (2)
77OnCollectionChanged(NotifyCollectionChangedAction.Add, item, count); 167private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index)
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\Navigation\JournalEntryListConverter.cs (1)
197CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
src\Framework\System\Windows\ResourceDictionary.cs (5)
1840if (e.Action != NotifyCollectionChangedAction.Reset) 1852if (e.Action == NotifyCollectionChangedAction.Remove 1853|| e.Action == NotifyCollectionChangedAction.Replace) 1870if (e.Action == NotifyCollectionChangedAction.Add 1871|| e.Action == NotifyCollectionChangedAction.Replace)
System (59)
compmod\system\collections\objectmodel\observablecollection.cs (8)
203OnCollectionChanged(NotifyCollectionChangedAction.Remove, removedItem, index); 217OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index); 231OnCollectionChanged(NotifyCollectionChangedAction.Replace, originalItem, item, index); 248OnCollectionChanged(NotifyCollectionChangedAction.Move, removedItem, newIndex, oldIndex); 347private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 355private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index, int oldIndex) 363private void OnCollectionChanged(NotifyCollectionChangedAction action, object oldItem, object newItem, int index) 373OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
compmod\system\collections\specialized\marshalinghelpers.cs (1)
25NotifyCollectionChangedAction Action { get; }
compmod\system\collections\specialized\notifycollectionchangedeventargs.cs (50)
57public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action) 59if (action != NotifyCollectionChangedAction.Reset) 60throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Reset), "action"); 70public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem) 72if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 73&& (action != NotifyCollectionChangedAction.Reset)) 76if (action == NotifyCollectionChangedAction.Reset) 95public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index) 97if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 98&& (action != NotifyCollectionChangedAction.Reset)) 101if (action == NotifyCollectionChangedAction.Reset) 121public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems) 123if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 124&& (action != NotifyCollectionChangedAction.Reset)) 127if (action == NotifyCollectionChangedAction.Reset) 149public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex) 151if ((action != NotifyCollectionChangedAction.Add) && (action != NotifyCollectionChangedAction.Remove) 152&& (action != NotifyCollectionChangedAction.Reset)) 155if (action == NotifyCollectionChangedAction.Reset) 181public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem) 183if (action != NotifyCollectionChangedAction.Replace) 184throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), "action"); 196public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index) 198if (action != NotifyCollectionChangedAction.Replace) 199throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), "action"); 221public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems) 223if (action != NotifyCollectionChangedAction.Replace) 224throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), "action"); 240public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) 242if (action != NotifyCollectionChangedAction.Replace) 243throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), "action"); 259public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex) 261if (action != NotifyCollectionChangedAction.Move) 262throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), "action"); 277public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex) 279if (action != NotifyCollectionChangedAction.Move) 280throw new ArgumentException(SR.GetString(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), "action"); 290internal NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int newIndex, int oldIndex) 308private void InitializeAddOrRemove(NotifyCollectionChangedAction action, IList changedItems, int startingIndex) 310if (action == NotifyCollectionChangedAction.Add) 312else if (action == NotifyCollectionChangedAction.Remove) 318private void InitializeAdd(NotifyCollectionChangedAction action, IList newItems, int newStartingIndex) 334private void InitializeRemove(NotifyCollectionChangedAction action, IList oldItems, int oldStartingIndex) 341private void InitializeMoveOrReplace(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex, int oldStartingIndex) 356public NotifyCollectionChangedAction Action 399private NotifyCollectionChangedAction _action;
System.Activities.Core.Presentation (8)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (4)
27if (e.Action == NotifyCollectionChangedAction.Remove) 52else if (e.Action == NotifyCollectionChangedAction.Add) 76if (e.Action == NotifyCollectionChangedAction.Remove) 93else if (e.Action == NotifyCollectionChangedAction.Add)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
247if (e.Action == NotifyCollectionChangedAction.Move)
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
97case NotifyCollectionChangedAction.Remove:
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (2)
164case NotifyCollectionChangedAction.Remove: 173case NotifyCollectionChangedAction.Reset:
System.Activities.Presentation (56)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ObservableCollection.cs (3)
47this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1)); 54this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1)); 61this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (8)
417case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 424case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 443case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 450case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 599case System.Collections.Specialized.NotifyCollectionChangedAction.Reset: 604case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 608case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 612case System.Collections.Specialized.NotifyCollectionChangedAction.Replace:
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelCategoryEntry.cs (2)
147FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, property)); 275FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (10)
133this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, insertedValue, index)); 242this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removedValue, index)); 276this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, _values[i].PropertyValue)); 288this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 388NotifyCollectionChangedAction.Move, currentIndexer.PropertyValue, newIndex, currentIndex)); 446case NotifyCollectionChangedAction.Add: 454case NotifyCollectionChangedAction.Remove: 461case NotifyCollectionChangedAction.Move: 470case NotifyCollectionChangedAction.Replace: 479case NotifyCollectionChangedAction.Reset:
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueCollection.cs (1)
112this.CollectionChanged(this, e ?? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (4)
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)); 609this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Remove, item, index)); 634this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Remove, item, index));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (10)
156new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, 176if (e.Action == NotifyCollectionChangedAction.Add) 185else if (e.Action == NotifyCollectionChangedAction.Remove) 196else if (e.Action == NotifyCollectionChangedAction.Replace) 211else if (e.Action == NotifyCollectionChangedAction.Reset) 217new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 726new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, 789new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, 843new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removed)); 950new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, new KeyValuePair<ModelItem, ModelItem>(key, value)));
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 (4)
360case NotifyCollectionChangedAction.Add: 374case NotifyCollectionChangedAction.Remove: 392case NotifyCollectionChangedAction.Remove: 404case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
294if (e.Action == NotifyCollectionChangedAction.Add) 301else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
32if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
590if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
416case NotifyCollectionChangedAction.Add: 448case NotifyCollectionChangedAction.Remove: 470case NotifyCollectionChangedAction.Remove: 483case NotifyCollectionChangedAction.Add:
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
241if (e.Action == NotifyCollectionChangedAction.Add 267else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Data (56)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ObservableCollection.cs (3)
47this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1)); 54this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1)); 61this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, null, -1));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (8)
417case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 424case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 443case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 450case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 599case System.Collections.Specialized.NotifyCollectionChangedAction.Reset: 604case System.Collections.Specialized.NotifyCollectionChangedAction.Add: 608case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: 612case System.Collections.Specialized.NotifyCollectionChangedAction.Replace:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelCategoryEntry.cs (2)
147FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, property)); 275FirePropertiesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (10)
133this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, insertedValue, index)); 242this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removedValue, index)); 276this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, _values[i].PropertyValue)); 288this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 388NotifyCollectionChangedAction.Move, currentIndexer.PropertyValue, newIndex, currentIndex)); 446case NotifyCollectionChangedAction.Add: 454case NotifyCollectionChangedAction.Remove: 461case NotifyCollectionChangedAction.Move: 470case NotifyCollectionChangedAction.Replace: 479case NotifyCollectionChangedAction.Reset:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueCollection.cs (1)
112this.CollectionChanged(this, e ?? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (4)
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)); 609this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Remove, item, index)); 634this.CollectionChanged(this, new System.Collections.Specialized.NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction.Remove, item, index));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (10)
156new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, 176if (e.Action == NotifyCollectionChangedAction.Add) 185else if (e.Action == NotifyCollectionChangedAction.Remove) 196else if (e.Action == NotifyCollectionChangedAction.Replace) 211else if (e.Action == NotifyCollectionChangedAction.Reset) 217new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 726new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, 789new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, 843new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removed)); 950new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, new KeyValuePair<ModelItem, ModelItem>(key, value)));
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 (4)
360case NotifyCollectionChangedAction.Add: 374case NotifyCollectionChangedAction.Remove: 392case NotifyCollectionChangedAction.Remove: 404case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
294if (e.Action == NotifyCollectionChangedAction.Add) 301else if (e.Action == NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
32if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
590if (e.Action == Collections.Specialized.NotifyCollectionChangedAction.Remove)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
416case NotifyCollectionChangedAction.Add: 448case NotifyCollectionChangedAction.Remove: 470case NotifyCollectionChangedAction.Remove: 483case NotifyCollectionChangedAction.Add:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
241if (e.Action == NotifyCollectionChangedAction.Add 267else if (e.Action == NotifyCollectionChangedAction.Remove)
System.Data.Services.Client (10)
System\Data\Services\Client\Binding\BindingObserver.cs (7)
298case NotifyCollectionChangedAction.Add: 308case NotifyCollectionChangedAction.Remove: 317case NotifyCollectionChangedAction.Replace: 333case NotifyCollectionChangedAction.Reset: 349case NotifyCollectionChangedAction.Move: 416NotifyCollectionChangedAction.Add); 550NotifyCollectionChangedAction.Remove);
System\Data\Services\Client\Binding\EntityCollectionChangedParams.cs (3)
50private readonly NotifyCollectionChangedAction action; 75NotifyCollectionChangedAction action) 140public NotifyCollectionChangedAction Action
WindowsBase (8)
Base\System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.NotifyCollectionChangedAction))]
Base\System\ComponentModel\SortDescriptionCollection.cs (7)
80OnCollectionChanged(NotifyCollectionChangedAction.Reset); 91OnCollectionChanged(NotifyCollectionChangedAction.Remove, removedItem, index); 102OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index); 114OnCollectionChanged(NotifyCollectionChangedAction.Remove, originalItem, index); 115OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index); 121private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 129void OnCollectionChanged(NotifyCollectionChangedAction action)