674 references to NotifyCollectionChangedAction
Microsoft.Maui.Controls (151)
BindableLayout\BindableLayout.cs (1)
499 if (e.Action == NotifyCollectionChangedAction.Replace)
Element\Element.cs (5)
851 case NotifyCollectionChangedAction.Add: 857 case NotifyCollectionChangedAction.Move: 859 case NotifyCollectionChangedAction.Remove: 865 case NotifyCollectionChangedAction.Replace: 875 case NotifyCollectionChangedAction.Reset:
FormattedString.cs (1)
88 base.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removed));
GestureElement.cs (5)
38 case NotifyCollectionChangedAction.Add: 41 case NotifyCollectionChangedAction.Remove: 44 case NotifyCollectionChangedAction.Replace: 48 case NotifyCollectionChangedAction.Reset: 74 base.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removed));
IndicatorView\IndicatorView.cs (1)
168 OnCollectionChanged(ItemsSource, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
Internals\NotifyCollectionChangedEventArgsEx.cs (11)
13 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action) : base(action) 19 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems) : base(action, changedItems) 25 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems) : base(action, newItems, oldItems) 31 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) : base(action, newItems, oldItems, startingIndex) 37 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int startingIndex) : base(action, changedItems, startingIndex) 43 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex) : base(action, changedItems, index, oldIndex) 49 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem) : base(action, changedItem) 55 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem, int index) : base(action, changedItem, index) 61 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex) : base(action, changedItem, index, oldIndex) 67 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object newItem, object oldItem) : base(action, newItem, oldItem) 73 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object newItem, object oldItem, int index) : base(action, newItem, oldItem, index)
Internals\NotifyCollectionChangedEventArgsExtensions.cs (20)
25 public static NotifyCollectionChangedAction Apply(this NotifyCollectionChangedEventArgs self, Action<object, int, bool> insert, Action<object, int> removeAt, Action reset) 38 case NotifyCollectionChangedAction.Add: 40 goto case NotifyCollectionChangedAction.Reset; 47 case NotifyCollectionChangedAction.Move: 49 goto case NotifyCollectionChangedAction.Reset; 63 case NotifyCollectionChangedAction.Remove: 65 goto case NotifyCollectionChangedAction.Reset; 71 case NotifyCollectionChangedAction.Replace: 73 goto case NotifyCollectionChangedAction.Reset; 82 case NotifyCollectionChangedAction.Reset: 84 return NotifyCollectionChangedAction.Reset; 95 case NotifyCollectionChangedAction.Add: 96 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Add, e.NewItems, e.NewStartingIndex); 98 case NotifyCollectionChangedAction.Remove: 99 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Remove, e.OldItems, e.OldStartingIndex); 101 case NotifyCollectionChangedAction.Move: 102 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Move, e.OldItems, e.NewStartingIndex, e.OldStartingIndex); 104 case NotifyCollectionChangedAction.Replace: 105 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Replace, e.NewItems, e.OldItems, e.OldStartingIndex); 108 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Reset);
Items\MarshalingObservableCollection.cs (7)
42 : base(NotifyCollectionChangedAction.Reset) => Items = items; 54 if (args.Action == NotifyCollectionChangedAction.Reset) 72 case NotifyCollectionChangedAction.Add: 75 case NotifyCollectionChangedAction.Move: 78 case NotifyCollectionChangedAction.Remove: 81 case NotifyCollectionChangedAction.Replace: 84 case NotifyCollectionChangedAction.Reset:
Label\Label.cs (8)
319 case NotifyCollectionChangedAction.Add: 322 case NotifyCollectionChangedAction.Remove: 325 case NotifyCollectionChangedAction.Replace: 329 case NotifyCollectionChangedAction.Reset: 340 case NotifyCollectionChangedAction.Add: 343 case NotifyCollectionChangedAction.Remove: 346 case NotifyCollectionChangedAction.Replace: 350 case NotifyCollectionChangedAction.Reset:
LegacyLayouts\Layout.cs (2)
117 new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, InternalChildren)); 619 if (e.Action == NotifyCollectionChangedAction.Move)
ListProxy.cs (1)
162 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MultiPage.cs (10)
225 case NotifyCollectionChangedAction.Add: 227 goto case NotifyCollectionChangedAction.Reset; 243 case NotifyCollectionChangedAction.Remove: 245 goto case NotifyCollectionChangedAction.Reset; 260 case NotifyCollectionChangedAction.Move: 262 goto case NotifyCollectionChangedAction.Reset; 300 case NotifyCollectionChangedAction.Replace: 302 goto case NotifyCollectionChangedAction.Reset; 318 case NotifyCollectionChangedAction.Reset: 361 OnPagesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
ObservableList.cs (6)
25 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, index)); 41 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items, originalIndex)); 66 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, items, newIndex, oldIndex)); 78 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, items, index)); 90 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, items)); 110 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, ritems, oldItems, startIndex));
ObservableWrapper.cs (15)
180 case NotifyCollectionChangedAction.Add: 182 goto case NotifyCollectionChangedAction.Reset; 189 handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems, outerIndex)); 191 case NotifyCollectionChangedAction.Move: 193 goto case NotifyCollectionChangedAction.Reset; 201 handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, e.NewItems, outerNewIndex, outerOldIndex)); 203 case NotifyCollectionChangedAction.Remove: 205 goto case NotifyCollectionChangedAction.Reset; 212 var args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removedItem, outerRemovedIndex); 215 case NotifyCollectionChangedAction.Replace: 217 goto case NotifyCollectionChangedAction.Reset; 228 goto case NotifyCollectionChangedAction.Reset; 233 var replaceArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newReplaceItem, oldReplaceItem, index); 236 case NotifyCollectionChangedAction.Reset: 237 handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
Page\Page.cs (1)
98 InternalChildrenOnCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, InternalChildren));
Picker\Picker.cs (2)
294 case NotifyCollectionChangedAction.Add: 297 case NotifyCollectionChangedAction.Remove:
ResourceDictionary.cs (3)
101 case NotifyCollectionChangedAction.Add: 111 if (e.Action == NotifyCollectionChangedAction.Move) 116 if (e.Action == NotifyCollectionChangedAction.Reset)
Shell\ShellElementCollection.cs (1)
122 CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, list));
TemplatedItemsList.cs (47)
729 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 800 case NotifyCollectionChangedAction.Add: 802 goto case NotifyCollectionChangedAction.Reset; 815 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, newItems, e.NewStartingIndex)); 819 case NotifyCollectionChangedAction.Remove: 821 goto case NotifyCollectionChangedAction.Reset; 839 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, oldItems, e.OldStartingIndex)); 843 case NotifyCollectionChangedAction.Replace: 845 goto case NotifyCollectionChangedAction.Reset; 865 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newItems, oldItems, e.OldStartingIndex)); 869 case NotifyCollectionChangedAction.Move: 871 goto case NotifyCollectionChangedAction.Reset; 912 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, oldItems, e.OldStartingIndex, e.NewStartingIndex)); 916 case NotifyCollectionChangedAction.Reset: 962 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 970 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1008 case NotifyCollectionChangedAction.Add: 1017 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Add, items, e.NewStartingIndex); 1021 goto case NotifyCollectionChangedAction.Reset; 1026 case NotifyCollectionChangedAction.Move: 1028 goto case NotifyCollectionChangedAction.Reset; 1055 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Move, itemsToMove, e.NewStartingIndex, e.OldStartingIndex); 1058 case NotifyCollectionChangedAction.Remove: 1077 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Remove, items, e.OldStartingIndex); 1081 goto case NotifyCollectionChangedAction.Reset; 1085 case NotifyCollectionChangedAction.Replace: 1096 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Replace, newItems, oldItems, e.NewStartingIndex); 1100 goto case NotifyCollectionChangedAction.Reset; 1105 case NotifyCollectionChangedAction.Reset: 1106 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Reset); 1167 case NotifyCollectionChangedAction.Add: 1172 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems[i], e.NewStartingIndex + i)); 1176 case NotifyCollectionChangedAction.Remove: 1181 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, e.OldItems[i], e.OldStartingIndex + i)); 1185 case NotifyCollectionChangedAction.Replace: 1190 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, e.NewItems[i], e.OldItems[i], e.OldStartingIndex + i)); 1195 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1320 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, list.ShortName, old, index)); 1343 case NotifyCollectionChangedAction.Add: 1344 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, ConvertItems(e.NewItems), e.NewStartingIndex); 1347 case NotifyCollectionChangedAction.Move: 1348 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, ConvertItems(e.OldItems), e.NewStartingIndex, e.OldStartingIndex); 1351 case NotifyCollectionChangedAction.Remove: 1352 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, ConvertItems(e.OldItems), e.OldStartingIndex); 1355 case NotifyCollectionChangedAction.Replace: 1356 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, ConvertItems(e.NewItems), ConvertItems(e.OldItems), e.OldStartingIndex); 1374 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
View\View.cs (4)
123 case NotifyCollectionChangedAction.Add: 126 case NotifyCollectionChangedAction.Remove: 129 case NotifyCollectionChangedAction.Replace: 133 case NotifyCollectionChangedAction.Reset:
Microsoft.VisualStudio.LanguageServices (2)
ValueTracking\TreeViewItemBase.cs (2)
110if (args.Action is not NotifyCollectionChangedAction.Add and not NotifyCollectionChangedAction.Remove)
netstandard (1)
netstandard.cs (1)
163[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.NotifyCollectionChangedAction))]
PresentationCore (17)
System\Windows\FreezableCollection.cs (13)
164OnCollectionChanged(NotifyCollectionChangedAction.Reset, 0, null, 0, null); 208OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index, value); 243OnCollectionChanged(NotifyCollectionChangedAction.Remove, index, oldValue, 0, null); 267OnCollectionChanged(NotifyCollectionChangedAction.Remove, index, oldValue, 0, null); 333OnCollectionChanged(NotifyCollectionChangedAction.Replace, index, oldValue, index, value); 687OnCollectionChanged(NotifyCollectionChangedAction.Add, 0, null, index-1, value); 713private void OnCollectionChanged(NotifyCollectionChangedAction action, 728if (action != NotifyCollectionChangedAction.Replace && 729action != NotifyCollectionChangedAction.Move) 742case NotifyCollectionChangedAction.Reset: 745case NotifyCollectionChangedAction.Add: 748case NotifyCollectionChangedAction.Remove: 751case NotifyCollectionChangedAction.Replace:
System\Windows\Ink\StrokeCollection.cs (4)
643args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 648args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, e.Removed, e.Index); 653args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.Added, e.Index); 658args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, e.Added, e.Removed, e.Index);
PresentationFramework (385)
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
162OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 190OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
111OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, 0));
MS\Internal\Annotations\XmlElementCollection.cs (1)
240OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Controls\InnerItemCollectionView.cs (5)
156OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, value, originalItem, index)); 217OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, indexV)); 289OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index)); 560OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 687OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index));
MS\Internal\Data\CollectionViewGroupRoot.cs (5)
146OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, globalIndex)); 165OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, globalIndex)); 494OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index)); 645OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, newIndex, oldIndex)); 753OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, leafIndex));
MS\Internal\Data\CompositeCollectionView.cs (27)
356OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 392case NotifyCollectionChangedAction.Add: 393case NotifyCollectionChangedAction.Remove: 398if (args.Action == NotifyCollectionChangedAction.Add) 427if (args.Action == NotifyCollectionChangedAction.Add) 433else if (args.Action == NotifyCollectionChangedAction.Remove) 444if (args.Action == NotifyCollectionChangedAction.Add) 452Debug.Assert(args.Action == NotifyCollectionChangedAction.Remove); 459if (args.Action == NotifyCollectionChangedAction.Add) 467Invariant.Assert(args.Action == NotifyCollectionChangedAction.Remove); 481args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 486case NotifyCollectionChangedAction.Replace: 528args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 533case NotifyCollectionChangedAction.Move: 604args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 610case NotifyCollectionChangedAction.Reset: 727case NotifyCollectionChangedAction.Add: 739case NotifyCollectionChangedAction.Remove: 751case NotifyCollectionChangedAction.Replace: 759case NotifyCollectionChangedAction.Move: 776case NotifyCollectionChangedAction.Reset: 1423private void TraceContainerCollectionChange(object sender, NotifyCollectionChangedAction action, object oldItem, object newItem) 1433case NotifyCollectionChangedAction.Add: 1438case NotifyCollectionChangedAction.Remove: 1443case NotifyCollectionChangedAction.Replace: 1448case NotifyCollectionChangedAction.Move: 1455case NotifyCollectionChangedAction.Reset:
MS\Internal\Data\DifferencingCollection.cs (1)
237OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\EnumerableCollectionView.cs (6)
402case NotifyCollectionChangedAction.Add: 419case NotifyCollectionChangedAction.Remove: 432case NotifyCollectionChangedAction.Replace: 442case NotifyCollectionChangedAction.Move: 477case NotifyCollectionChangedAction.Reset: 512OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\LiveShapingTree.cs (1)
70RaiseMoveEvent(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move,
MS\Internal\Navigation\JournalEntryStack.cs (1)
25CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Annotations\Annotation.cs (15)
704case NotifyCollectionChangedAction.Add: 709case NotifyCollectionChangedAction.Remove: 714case NotifyCollectionChangedAction.Replace: 725case NotifyCollectionChangedAction.Move: 729case NotifyCollectionChangedAction.Reset: 758case NotifyCollectionChangedAction.Add: 763case NotifyCollectionChangedAction.Remove: 768case NotifyCollectionChangedAction.Replace: 779case NotifyCollectionChangedAction.Move: 783case NotifyCollectionChangedAction.Reset: 807case NotifyCollectionChangedAction.Add: 812case NotifyCollectionChangedAction.Remove: 817case NotifyCollectionChangedAction.Replace: 828case NotifyCollectionChangedAction.Move: 832case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGrid.cs (32)
227case NotifyCollectionChangedAction.Add: 232case NotifyCollectionChangedAction.Remove: 236case NotifyCollectionChangedAction.Replace: 242case NotifyCollectionChangedAction.Reset: 257visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.Reset); 267if (visibleColumnsChanged && e.Action != NotifyCollectionChangedAction.Move) 653internal void UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex) 948case NotifyCollectionChangedAction.Add: 956case NotifyCollectionChangedAction.Remove: 964case NotifyCollectionChangedAction.Replace: 977case NotifyCollectionChangedAction.Reset: 4119internal void OnSelectedCellsChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems) 4182(action == NotifyCollectionChangedAction.Add) && // An item was added 4189else if ((action == NotifyCollectionChangedAction.Remove) && 5341if (e.Action == NotifyCollectionChangedAction.Reset) 5351if (e.Action == NotifyCollectionChangedAction.Remove || e.Action == NotifyCollectionChangedAction.Replace) 5358else if (e.Action == NotifyCollectionChangedAction.Reset) 7250case NotifyCollectionChangedAction.Add: 7261case NotifyCollectionChangedAction.Remove: 7278case NotifyCollectionChangedAction.Move: 7281case NotifyCollectionChangedAction.Replace: 7285case NotifyCollectionChangedAction.Reset: 7395case NotifyCollectionChangedAction.Add: 7403case NotifyCollectionChangedAction.Remove: 7411case NotifyCollectionChangedAction.Move: 7414case NotifyCollectionChangedAction.Replace: 7423case NotifyCollectionChangedAction.Reset: 7653if (e.Action == NotifyCollectionChangedAction.Add) 7661else if ((e.Action == NotifyCollectionChangedAction.Remove) || (e.Action == NotifyCollectionChangedAction.Replace)) 7676else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\DataGridCellsPanel.cs (4)
2046case NotifyCollectionChangedAction.Remove: 2050case NotifyCollectionChangedAction.Replace: 2054case NotifyCollectionChangedAction.Move: 2058case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGridColumnCollection.cs (11)
88case NotifyCollectionChangedAction.Add: 97case NotifyCollectionChangedAction.Move: 105case NotifyCollectionChangedAction.Remove: 115case NotifyCollectionChangedAction.Replace: 125case NotifyCollectionChangedAction.Reset: 131DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Reset, -1, null, -1); 387DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Move, oldDisplayIndex, null, newDisplayIndex); 399DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Move, oldColumnIndex, null, newColumnIndex); 444DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Add, -1, null, newDisplayIndex); 583DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Remove, removedDisplayIndex, (DataGridColumn)oldColumns[0], -1); 612DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Replace, newDisplayIndex, oldColumn, newDisplayIndex);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (6)
50NotifyCollectionChangedAction.Replace, 210case NotifyCollectionChangedAction.Add: 214case NotifyCollectionChangedAction.Remove: 218case NotifyCollectionChangedAction.Move: 222case NotifyCollectionChangedAction.Replace: 227newArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
System\Windows\Controls\GridViewColumnCollection.cs (5)
265return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, _columns[actualIndex], newIndex, oldIndex, actualIndex); 288return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, list); 309return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, column, index, actualIndex); 393return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, column, index, count /* actual index*/); 413return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newColumn, oldColumn, index, oldColumnActualIndex);
System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (7)
22: base(NotifyCollectionChangedAction.Reset) // NotifyCollectionChangedEventArgs doesn't have 0 parameter constructor, so pass in an arbitrary parameter. 33internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn[] clearedColumns) 42internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn changedItem, int index, int actualIndex) 45Debug.Assert(action == NotifyCollectionChangedAction.Add || action == NotifyCollectionChangedAction.Remove, 57internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn newItem, GridViewColumn oldItem, int index, int actualIndex) 71internal GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction action, GridViewColumn changedItem, int index, int oldIndex, int actualIndex)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
694case NotifyCollectionChangedAction.Move: 704case NotifyCollectionChangedAction.Add: 712case NotifyCollectionChangedAction.Remove: 717case NotifyCollectionChangedAction.Replace: 726case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\GridViewRowPresenter.cs (5)
364if (e.Action == NotifyCollectionChangedAction.Move) 372case NotifyCollectionChangedAction.Add: 378case NotifyCollectionChangedAction.Remove: 382case NotifyCollectionChangedAction.Replace: 387case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemCollection.cs (12)
448OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1710OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1960OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 2172case NotifyCollectionChangedAction.Add: 2175goto case NotifyCollectionChangedAction.Reset; 2181case NotifyCollectionChangedAction.Remove: 2183goto case NotifyCollectionChangedAction.Reset; 2191case NotifyCollectionChangedAction.Replace: 2194goto case NotifyCollectionChangedAction.Reset; 2201case NotifyCollectionChangedAction.Move: 2204goto case NotifyCollectionChangedAction.Reset; 2226case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemContainerGenerator.cs (13)
2071ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2091ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Remove, position, 1, 1)); 2388if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.Reset) 2393case NotifyCollectionChangedAction.Add: 2399case NotifyCollectionChangedAction.Remove: 2405case NotifyCollectionChangedAction.Replace: 2415case NotifyCollectionChangedAction.Move: 2425case NotifyCollectionChangedAction.Reset: 2518ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Add, position, 1, 0)); 2563ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Remove, position, 1, containerCount)); 2622ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Replace, position, 1, 1)); 2733ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Move, position, oldPosition, 1, containerCount)); 2774ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset, position, 0, 0));
System\Windows\Controls\ItemsControl.cs (6)
303if (e.Action == NotifyCollectionChangedAction.Reset) 3687case NotifyCollectionChangedAction.Add: 3699case NotifyCollectionChangedAction.Remove: 3715case NotifyCollectionChangedAction.Move: 3746case NotifyCollectionChangedAction.Replace: 3750case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\MultipleCopiesCollection.cs (11)
49case NotifyCollectionChangedAction.Add: 56case NotifyCollectionChangedAction.Move: 63case NotifyCollectionChangedAction.Remove: 70case NotifyCollectionChangedAction.Replace: 77case NotifyCollectionChangedAction.Reset: 179OnCollectionChanged(NotifyCollectionChangedAction.Add, CopiedItem, index); 194OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, CopiedItem, newIndex, oldIndex)); 202OnCollectionChanged(NotifyCollectionChangedAction.Remove, CopiedItem, index); 216OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, newItem, oldItem, index)); 422private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 432OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Controls\Panel.cs (5)
689case NotifyCollectionChangedAction.Add: 692case NotifyCollectionChangedAction.Remove: 695case NotifyCollectionChangedAction.Replace: 698case NotifyCollectionChangedAction.Move: 702case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
347e.Action != NotifyCollectionChangedAction.Reset || columns.Count == 0,
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (3)
148if (e.Action == NotifyCollectionChangedAction.Remove 149|| e.Action == NotifyCollectionChangedAction.Replace) 165else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\Primitives\ItemsChangedEventArgs.cs (4)
28internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, 41internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, 56public NotifyCollectionChangedAction Action { get { return _action; } } 77NotifyCollectionChangedAction _action;
System\Windows\Controls\Primitives\Selector.cs (12)
872case NotifyCollectionChangedAction.Add: 879case NotifyCollectionChangedAction.Remove: 886case NotifyCollectionChangedAction.Reset: 901case NotifyCollectionChangedAction.Replace: 909case NotifyCollectionChangedAction.Move: 1104if (e.Action == NotifyCollectionChangedAction.Reset || 1105(e.Action == NotifyCollectionChangedAction.Add && 1141case NotifyCollectionChangedAction.Add: 1160case NotifyCollectionChangedAction.Replace: 1172case NotifyCollectionChangedAction.Remove: 1178case NotifyCollectionChangedAction.Move: 1192case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
381case NotifyCollectionChangedAction.Add: 384case NotifyCollectionChangedAction.Remove: 387case NotifyCollectionChangedAction.Replace: 390case NotifyCollectionChangedAction.Move: 394case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\SelectedCellsCollection.cs (1)
70protected override void OnCollectionChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems)
System\Windows\Controls\TabControl.cs (1)
380if (e.Action == NotifyCollectionChangedAction.Remove && SelectedIndex == -1)
System\Windows\Controls\TreeView.cs (5)
415case NotifyCollectionChangedAction.Remove: 416case NotifyCollectionChangedAction.Reset: 423case NotifyCollectionChangedAction.Replace: 435case NotifyCollectionChangedAction.Add: 436case NotifyCollectionChangedAction.Move:
System\Windows\Controls\TreeViewItem.cs (5)
945case NotifyCollectionChangedAction.Remove: 946case NotifyCollectionChangedAction.Reset: 958case NotifyCollectionChangedAction.Replace: 975case NotifyCollectionChangedAction.Add: 976case NotifyCollectionChangedAction.Move:
System\Windows\Controls\VirtualizedCellInfoCollection.cs (14)
430OnCollectionChanged(NotifyCollectionChangedAction.Add, null, newItems); 438OnCollectionChanged(NotifyCollectionChangedAction.Remove, oldItems, null); 444protected virtual void OnCollectionChanged(NotifyCollectionChangedAction action, VirtualizedCellInfoCollection oldItems, VirtualizedCellInfoCollection newItems) 950case NotifyCollectionChangedAction.Add: 954case NotifyCollectionChangedAction.Remove: 958case NotifyCollectionChangedAction.Replace: 962case NotifyCollectionChangedAction.Move: 966case NotifyCollectionChangedAction.Reset: 1117internal void OnColumnsChanged(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex, IList selectedRows) 1123case NotifyCollectionChangedAction.Add: 1127case NotifyCollectionChangedAction.Remove: 1131case NotifyCollectionChangedAction.Replace: 1135case NotifyCollectionChangedAction.Move: 1139case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\VirtualizingPanel.cs (4)
512case NotifyCollectionChangedAction.Add: 513case NotifyCollectionChangedAction.Remove: 514case NotifyCollectionChangedAction.Replace: 515case NotifyCollectionChangedAction.Move:
System\Windows\Controls\VirtualizingStackPanel.cs (10)
3574case NotifyCollectionChangedAction.Remove: 3579case NotifyCollectionChangedAction.Replace: 3584case NotifyCollectionChangedAction.Move: 3588case NotifyCollectionChangedAction.Reset: 3638case NotifyCollectionChangedAction.Remove: 3647case NotifyCollectionChangedAction.Replace: 3653case NotifyCollectionChangedAction.Add: 3662case NotifyCollectionChangedAction.Move: 3696Debug.Assert(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1); 3745ItemsChangedEventArgs newArgs = new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset,
System\Windows\Data\BindingGroup.cs (5)
1303case NotifyCollectionChangedAction.Add: 1307case NotifyCollectionChangedAction.Remove: 1311case NotifyCollectionChangedAction.Move: 1313case NotifyCollectionChangedAction.Replace: 1319case NotifyCollectionChangedAction.Reset:
System\Windows\Data\BindingListCollectionView.cs (28)
453NotifyCollectionChangedAction.Remove, 460NotifyCollectionChangedAction.Remove, 473NotifyCollectionChangedAction.Add, 483NotifyCollectionChangedAction.Move, 497NotifyCollectionChangedAction.Add, 505NotifyCollectionChangedAction.Move, 637NotifyCollectionChangedAction.Add, 786result = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, newItem, toIndex, fromIndex); 1386OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1499case NotifyCollectionChangedAction.Add: 1515case NotifyCollectionChangedAction.Remove: 1525case NotifyCollectionChangedAction.Replace: 1538case NotifyCollectionChangedAction.Move: 1550case NotifyCollectionChangedAction.Reset: 1812case NotifyCollectionChangedAction.Add: 1815case NotifyCollectionChangedAction.Remove: 1818case NotifyCollectionChangedAction.Replace: 1821case NotifyCollectionChangedAction.Move: 1916forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index + delta); 1957forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index + delta); 1974forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, index+delta, args.OldIndex+delta); 2295if (e.Action == NotifyCollectionChangedAction.Add) 2299else if (e.Action == NotifyCollectionChangedAction.Remove) 2433case NotifyCollectionChangedAction.Add: 2438case NotifyCollectionChangedAction.Remove: 2443case NotifyCollectionChangedAction.Replace: 2448case NotifyCollectionChangedAction.Move: 2455case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CollectionContainer.cs (1)
366OnContainedCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Data\CollectionView.cs (14)
869OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 920if (args.Action != NotifyCollectionChangedAction.Replace && 921args.Action != NotifyCollectionChangedAction.Move) 1081case NotifyCollectionChangedAction.Add: 1089case NotifyCollectionChangedAction.Remove: 1097case NotifyCollectionChangedAction.Replace: 1105case NotifyCollectionChangedAction.Move: 1113case NotifyCollectionChangedAction.Reset: 1887if (args.Action == NotifyCollectionChangedAction.Reset) 1951case NotifyCollectionChangedAction.Add: 1956case NotifyCollectionChangedAction.Remove: 1963case NotifyCollectionChangedAction.Replace: 1968case NotifyCollectionChangedAction.Move: 1975case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CompositeCollection.cs (8)
117OnCollectionChanged(NotifyCollectionChangedAction.Add, newItem, addedIndex); 138OnCollectionChanged(NotifyCollectionChangedAction.Reset); 194OnCollectionChanged(NotifyCollectionChangedAction.Add, insertItem, insertIndex); 239OnCollectionChanged(NotifyCollectionChangedAction.Remove, removedItem, removeIndex); 321OnCollectionChanged(NotifyCollectionChangedAction.Replace, originalItem, value, itemIndex); 496void OnCollectionChanged(NotifyCollectionChangedAction action) 509void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index) 518void OnCollectionChanged(NotifyCollectionChangedAction action, object oldItem, object newItem, int index)
System\Windows\Data\ListCollectionView.cs (67)
156OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 566NotifyCollectionChangedAction.Remove, 573NotifyCollectionChangedAction.Remove, 586NotifyCollectionChangedAction.Add, 596NotifyCollectionChangedAction.Move, 610NotifyCollectionChangedAction.Add, 618NotifyCollectionChangedAction.Move, 812NotifyCollectionChangedAction.Add, 861int toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, newItem, _newItemIndex); 868NotifyCollectionChangedAction.Remove, 891NotifyCollectionChangedAction.Move, 930NotifyCollectionChangedAction.Add, 960int index = AdjustBefore(NotifyCollectionChangedAction.Remove, _newItem, _newItemIndex); 965NotifyCollectionChangedAction.Remove, 1123NotifyCollectionChangedAction.Remove, 1228NotifyCollectionChangedAction.Remove, 1258NotifyCollectionChangedAction.Move, 1268toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, editItem, SourceList.IndexOf(editItem)); 1271NotifyCollectionChangedAction.Add, 1667case NotifyCollectionChangedAction.Reset: 1668case NotifyCollectionChangedAction.Add: 1669case NotifyCollectionChangedAction.Replace: 1681if (args.Action != NotifyCollectionChangedAction.Reset) 1683if (args.Action != NotifyCollectionChangedAction.Remove && args.NewStartingIndex < 0 1684|| args.Action != NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0) 1697if (args.Action == NotifyCollectionChangedAction.Reset) 1720if (args.Action == NotifyCollectionChangedAction.Add && _newItemIndex == -2) 1729if (args.Action != NotifyCollectionChangedAction.Remove) 1731adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.NewStartingIndex); 1736if (args.Action != NotifyCollectionChangedAction.Add) 1738adjustedOldIndex = AdjustBefore(NotifyCollectionChangedAction.Remove, args.OldItems[0], args.OldStartingIndex); 1751case NotifyCollectionChangedAction.Add: 1758case NotifyCollectionChangedAction.Remove: 1777case NotifyCollectionChangedAction.Move: 1810NotifyCollectionChangedAction effectiveAction = args.Action; 1813effectiveAction = NotifyCollectionChangedAction.Replace; 1822if (args.Action != NotifyCollectionChangedAction.Add) 1824effectiveAction = NotifyCollectionChangedAction.Remove; 1833effectiveAction = NotifyCollectionChangedAction.Add; 1835else if (effectiveAction == NotifyCollectionChangedAction.Move) 1849effectiveAction = NotifyCollectionChangedAction.Remove; 1853effectiveAction = NotifyCollectionChangedAction.Move; 1880case NotifyCollectionChangedAction.Add: 1914case NotifyCollectionChangedAction.Remove: 1951case NotifyCollectionChangedAction.Replace: 1983case NotifyCollectionChangedAction.Move: 2041args2 = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, args.NewItems, adjustedNewIndex); 2042args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, args.OldItems, adjustedOldIndex); 2368case NotifyCollectionChangedAction.Add: 2378case NotifyCollectionChangedAction.Remove: 2388case NotifyCollectionChangedAction.Replace: 2401case NotifyCollectionChangedAction.Move: 2500case NotifyCollectionChangedAction.Add: 2505case NotifyCollectionChangedAction.Remove: 2510case NotifyCollectionChangedAction.Replace: 2515case NotifyCollectionChangedAction.Move: 2522case NotifyCollectionChangedAction.Reset: 2637private int AdjustBefore (NotifyCollectionChangedAction action, object item, int index) 2640if (action == NotifyCollectionChangedAction.Reset) 2672if (action == NotifyCollectionChangedAction.Add) 2703if (action == NotifyCollectionChangedAction.Add) 2727else if (action == NotifyCollectionChangedAction.Remove) 2988if (e.Action == NotifyCollectionChangedAction.Add) 2992else if (e.Action == NotifyCollectionChangedAction.Remove) 3113new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, 3152new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, 3192new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add,
System\Windows\Documents\DocumentReferenceCollection.cs (2)
68OnCollectionChanged(NotifyCollectionChangedAction.Add, item, count); 158private void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index)
System\Windows\Documents\DocumentSequence.cs (1)
714if (args.Action == NotifyCollectionChangedAction.Add)
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
592if (args.Action == NotifyCollectionChangedAction.Add)
System\Windows\Navigation\JournalEntryListConverter.cs (1)
181CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\ResourceDictionary.cs (5)
1851if (e.Action != NotifyCollectionChangedAction.Reset) 1863if (e.Action == NotifyCollectionChangedAction.Remove 1864|| e.Action == NotifyCollectionChangedAction.Replace) 1881if (e.Action == NotifyCollectionChangedAction.Add 1882|| e.Action == NotifyCollectionChangedAction.Replace)
System (1)
src\libraries\shims\System\ref\System.cs (1)
152[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.NotifyCollectionChangedAction))]
System.ObjectModel (38)
System\Collections\ObjectModel\ObservableCollection.cs (8)
112OnCollectionChanged(NotifyCollectionChangedAction.Remove, removedItem, index); 126OnCollectionChanged(NotifyCollectionChangedAction.Add, item, index); 140OnCollectionChanged(NotifyCollectionChangedAction.Replace, originalItem, item, index); 157OnCollectionChanged(NotifyCollectionChangedAction.Move, removedItem, newIndex, oldIndex); 250private void OnCollectionChanged(NotifyCollectionChangedAction action, object? item, int index) 258private void OnCollectionChanged(NotifyCollectionChangedAction action, object? item, int index, int oldIndex) 266private void OnCollectionChanged(NotifyCollectionChangedAction action, object? oldItem, object? newItem, int index) 319internal static readonly NotifyCollectionChangedEventArgs ResetCollectionChanged = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (30)
16private readonly NotifyCollectionChangedAction _action; 26public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action) 28if (action != NotifyCollectionChangedAction.Reset) 30throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Reset), nameof(action)); 41public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object? changedItem) : 52public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object? changedItem, int index) 56case NotifyCollectionChangedAction.Reset: 67case NotifyCollectionChangedAction.Add: 72case NotifyCollectionChangedAction.Remove: 89public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems) : 100public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems, int startingIndex) 104case NotifyCollectionChangedAction.Reset: 115case NotifyCollectionChangedAction.Add: 116case NotifyCollectionChangedAction.Remove: 120if (action == NotifyCollectionChangedAction.Add) 145public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object? newItem, object? oldItem) : 157public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object? newItem, object? oldItem, int index) 159if (action != NotifyCollectionChangedAction.Replace) 161throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action)); 176public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems) : 188public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) 190if (action != NotifyCollectionChangedAction.Replace) 192throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action)); 210public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object? changedItem, int index, int oldIndex) 212if (action != NotifyCollectionChangedAction.Move) 214throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action)); 231public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems, int index, int oldIndex) 233if (action != NotifyCollectionChangedAction.Move) 235throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action)); 248public NotifyCollectionChangedAction Action => _action;
System.Windows (1)
System.Windows.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.NotifyCollectionChangedAction))]
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (5)
33case NotifyCollectionChangedAction.Add: 45case NotifyCollectionChangedAction.Remove: 48case NotifyCollectionChangedAction.Reset: 58case NotifyCollectionChangedAction.Move: 63case NotifyCollectionChangedAction.Replace:
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
1086if (e.Action == NotifyCollectionChangedAction.Remove || 1087e.Action == NotifyCollectionChangedAction.Replace || 1088e.Action == NotifyCollectionChangedAction.Reset) 1094e.Action == NotifyCollectionChangedAction.Move || 1095e.Action == NotifyCollectionChangedAction.Remove)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
2412case NotifyCollectionChangedAction.Remove: 2413case NotifyCollectionChangedAction.Reset: 2414case NotifyCollectionChangedAction.Replace: 2427case NotifyCollectionChangedAction.Add: 2428case NotifyCollectionChangedAction.Move:
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (5)
540case NotifyCollectionChangedAction.Remove: 541case NotifyCollectionChangedAction.Replace: 569case NotifyCollectionChangedAction.Reset: 587case NotifyCollectionChangedAction.Add: 593case NotifyCollectionChangedAction.Move:
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
321case NotifyCollectionChangedAction.Reset: 327case NotifyCollectionChangedAction.Remove:
WindowsBase (1)
WindowsBase.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.NotifyCollectionChangedAction))]
WindowsBase.Tests (55)
System\Collections\Specialized\CollectionChangedEventManagerTests.cs (34)
13yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset) }; 112source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 116source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 123source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 127source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 134source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 138source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 145source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 149source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 184yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset) }; 294source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 298source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 305source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 309source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 316source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 320source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 327source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 331source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 363source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 368source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 399source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 401source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 406source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 408source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 428source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 434source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 462source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 467source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 487source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 489source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 494source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 496source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 522source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 528source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\ComponentModel\CurrentChangedEventManagerTests.cs (1)
197yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset) };
System\ComponentModel\SortDescriptionCollectionTests.cs (20)
90Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].Action); 95Assert.Equal(NotifyCollectionChangedAction.Add, events[1].Action); 176Assert.Equal(NotifyCollectionChangedAction.Add, events[0].Action); 190Assert.Equal(NotifyCollectionChangedAction.Add, events[1].Action); 255Assert.Equal(NotifyCollectionChangedAction.Add, events[0].Action); 269Assert.Equal(NotifyCollectionChangedAction.Add, events[1].Action); 344Assert.Equal(NotifyCollectionChangedAction.Add, events[0].Action); 358Assert.Equal(NotifyCollectionChangedAction.Add, events[1].Action); 424Assert.Equal(NotifyCollectionChangedAction.Reset, events[0].Action); 437Assert.Equal(NotifyCollectionChangedAction.Reset, events[2].Action); 447Assert.Equal(NotifyCollectionChangedAction.Reset, events[3].Action); 496Assert.Equal(NotifyCollectionChangedAction.Reset, events[0].Action); 509Assert.Equal(NotifyCollectionChangedAction.Reset, events[2].Action); 519Assert.Equal(NotifyCollectionChangedAction.Reset, events[3].Action); 582Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].Action); 594Assert.Equal(NotifyCollectionChangedAction.Remove, events[1].Action); 668Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].Action); 680Assert.Equal(NotifyCollectionChangedAction.Remove, events[1].Action); 746Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].Action); 751Assert.Equal(NotifyCollectionChangedAction.Add, events[1].Action);