182 references to Reset
Microsoft.Maui.Controls (47)
Element\Element.cs (1)
875 case NotifyCollectionChangedAction.Reset:
GestureElement.cs (1)
48 case NotifyCollectionChangedAction.Reset:
IndicatorView\IndicatorView.cs (1)
168 OnCollectionChanged(ItemsSource, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
Internals\NotifyCollectionChangedEventArgsExtensions.cs (7)
40 goto case NotifyCollectionChangedAction.Reset; 49 goto case NotifyCollectionChangedAction.Reset; 65 goto case NotifyCollectionChangedAction.Reset; 73 goto case NotifyCollectionChangedAction.Reset; 82 case NotifyCollectionChangedAction.Reset: 84 return NotifyCollectionChangedAction.Reset; 108 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Reset);
Items\MarshalingObservableCollection.cs (3)
42 : base(NotifyCollectionChangedAction.Reset) => Items = items; 54 if (args.Action == NotifyCollectionChangedAction.Reset) 84 case NotifyCollectionChangedAction.Reset:
Label\Label.cs (2)
329 case NotifyCollectionChangedAction.Reset: 350 case NotifyCollectionChangedAction.Reset:
ListProxy.cs (1)
162 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MultiPage.cs (6)
227 goto case NotifyCollectionChangedAction.Reset; 245 goto case NotifyCollectionChangedAction.Reset; 262 goto case NotifyCollectionChangedAction.Reset; 302 goto case NotifyCollectionChangedAction.Reset; 318 case NotifyCollectionChangedAction.Reset: 361 OnPagesChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
ObservableWrapper.cs (7)
182 goto case NotifyCollectionChangedAction.Reset; 193 goto case NotifyCollectionChangedAction.Reset; 205 goto case NotifyCollectionChangedAction.Reset; 217 goto case NotifyCollectionChangedAction.Reset; 228 goto case NotifyCollectionChangedAction.Reset; 236 case NotifyCollectionChangedAction.Reset: 237 handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
ResourceDictionary.cs (1)
116 if (e.Action == NotifyCollectionChangedAction.Reset)
TemplatedItemsList.cs (16)
729 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 802 goto case NotifyCollectionChangedAction.Reset; 821 goto case NotifyCollectionChangedAction.Reset; 845 goto case NotifyCollectionChangedAction.Reset; 871 goto case NotifyCollectionChangedAction.Reset; 916 case NotifyCollectionChangedAction.Reset: 962 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 970 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1021 goto case NotifyCollectionChangedAction.Reset; 1028 goto case NotifyCollectionChangedAction.Reset; 1081 goto case NotifyCollectionChangedAction.Reset; 1100 goto case NotifyCollectionChangedAction.Reset; 1105 case NotifyCollectionChangedAction.Reset: 1106 e = new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Reset); 1195 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1374 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
View\View.cs (1)
133 case NotifyCollectionChangedAction.Reset:
PresentationCore (3)
System\Windows\FreezableCollection.cs (2)
163OnCollectionChanged(NotifyCollectionChangedAction.Reset, 0, null, 0, null); 741case NotifyCollectionChangedAction.Reset:
System\Windows\Ink\StrokeCollection.cs (1)
642args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
PresentationFramework (81)
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
161OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 189OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Annotations\XmlElementCollection.cs (1)
239OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Controls\InnerItemCollectionView.cs (1)
559OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\CompositeCollectionView.cs (7)
355OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 480args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 527args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 603args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 609case NotifyCollectionChangedAction.Reset: 775case NotifyCollectionChangedAction.Reset: 1454case NotifyCollectionChangedAction.Reset:
MS\Internal\Data\DifferencingCollection.cs (1)
236OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\EnumerableCollectionView.cs (2)
476case NotifyCollectionChangedAction.Reset: 511OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Navigation\JournalEntryStack.cs (1)
24CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Annotations\Annotation.cs (3)
728case NotifyCollectionChangedAction.Reset: 782case NotifyCollectionChangedAction.Reset: 831case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGrid.cs (8)
241case NotifyCollectionChangedAction.Reset: 256visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.Reset); 976case NotifyCollectionChangedAction.Reset: 5334if (e.Action == NotifyCollectionChangedAction.Reset) 5351else if (e.Action == NotifyCollectionChangedAction.Reset) 7278case NotifyCollectionChangedAction.Reset: 7416case NotifyCollectionChangedAction.Reset: 7669else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\DataGridCellsPanel.cs (1)
2051case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGridColumnCollection.cs (2)
124case NotifyCollectionChangedAction.Reset: 130DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Reset, -1, null, -1);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
226newArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
System\Windows\Controls\GridViewColumnCollection.cs (1)
287return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, list);
System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (1)
21: base(NotifyCollectionChangedAction.Reset) // NotifyCollectionChangedEventArgs doesn't have 0 parameter constructor, so pass in an arbitrary parameter.
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
725case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\GridViewRowPresenter.cs (1)
386case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemCollection.cs (8)
447OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1708OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1958OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 2173goto case NotifyCollectionChangedAction.Reset; 2181goto case NotifyCollectionChangedAction.Reset; 2192goto case NotifyCollectionChangedAction.Reset; 2202goto case NotifyCollectionChangedAction.Reset; 2224case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemContainerGenerator.cs (3)
2385if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.Reset) 2422case NotifyCollectionChangedAction.Reset: 2771ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset, position, 0, 0));
System\Windows\Controls\ItemsControl.cs (2)
302if (e.Action == NotifyCollectionChangedAction.Reset) 3749case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\MultipleCopiesCollection.cs (2)
76case NotifyCollectionChangedAction.Reset: 431OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Controls\Panel.cs (1)
701case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
346e.Action != NotifyCollectionChangedAction.Reset || columns.Count == 0,
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
164else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\Primitives\Selector.cs (3)
885case NotifyCollectionChangedAction.Reset: 1103if (e.Action == NotifyCollectionChangedAction.Reset || 1191case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
393case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\TreeView.cs (1)
415case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\TreeViewItem.cs (1)
945case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
965case NotifyCollectionChangedAction.Reset: 1138case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\VirtualizingStackPanel.cs (3)
3587case NotifyCollectionChangedAction.Reset: 3695Debug.Assert(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1); 3744ItemsChangedEventArgs newArgs = new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset,
System\Windows\Data\BindingGroup.cs (1)
1318case NotifyCollectionChangedAction.Reset:
System\Windows\Data\BindingListCollectionView.cs (3)
1385OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1549case NotifyCollectionChangedAction.Reset: 2454case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CollectionContainer.cs (1)
365OnContainedCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Data\CollectionView.cs (4)
868OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1112case NotifyCollectionChangedAction.Reset: 1886if (args.Action == NotifyCollectionChangedAction.Reset) 1974case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CompositeCollection.cs (1)
137OnCollectionChanged(NotifyCollectionChangedAction.Reset);
System\Windows\Data\ListCollectionView.cs (6)
155OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1666case NotifyCollectionChangedAction.Reset: 1680if (args.Action != NotifyCollectionChangedAction.Reset) 1696if (args.Action == NotifyCollectionChangedAction.Reset) 2521case NotifyCollectionChangedAction.Reset: 2639if (action == NotifyCollectionChangedAction.Reset)
System\Windows\Navigation\JournalEntryListConverter.cs (1)
180CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\ResourceDictionary.cs (1)
1890if (e.Action != NotifyCollectionChangedAction.Reset)
System.ObjectModel (5)
System\Collections\ObjectModel\ObservableCollection.cs (1)
319internal static readonly NotifyCollectionChangedEventArgs ResetCollectionChanged = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (4)
28if (action != NotifyCollectionChangedAction.Reset) 30throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Reset), nameof(action)); 56case NotifyCollectionChangedAction.Reset: 104case NotifyCollectionChangedAction.Reset:
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
47case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1084e.Action == NotifyCollectionChangedAction.Reset)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2406case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
568case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
320case NotifyCollectionChangedAction.Reset:
WindowsBase.Tests (41)
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 (6)
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);