213 references to Reset
Microsoft.Maui.Controls (66)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (6)
550 if (Control.IndexPathsForVisibleRows == null && e.Action != NotifyCollectionChangedAction.Reset) 569 goto case NotifyCollectionChangedAction.Reset; 577 goto case NotifyCollectionChangedAction.Reset; 588 goto case NotifyCollectionChangedAction.Reset; 599 goto case NotifyCollectionChangedAction.Reset; 608 case NotifyCollectionChangedAction.Reset:
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (5)
190 goto case NotifyCollectionChangedAction.Reset; 200 goto case NotifyCollectionChangedAction.Reset; 209 goto case NotifyCollectionChangedAction.Reset; 229 goto case NotifyCollectionChangedAction.Reset; 235 case NotifyCollectionChangedAction.Reset:
Compatibility\Handlers\TabbedPage\iOS\TabbedRenderer.cs (1)
85 OnPagesChanged(null, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
Element\Element.cs (1)
875 case NotifyCollectionChangedAction.Reset:
GestureElement.cs (1)
48 case NotifyCollectionChangedAction.Reset:
Handlers\Items\iOS\CarouselViewController.cs (1)
323 if (e.Action == NotifyCollectionChangedAction.Reset)
Handlers\Items\iOS\ObservableGroupedSource.cs (1)
190 case NotifyCollectionChangedAction.Reset:
Handlers\Items\iOS\ObservableItemsSource.cs (2)
150 case NotifyCollectionChangedAction.Reset: 163 var args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
Handlers\Items2\iOS\CarouselViewController2.cs (2)
243 if (e.Action == NotifyCollectionChangedAction.Reset) 270 if (e.Action == NotifyCollectionChangedAction.Reset)
Handlers\Items2\iOS\LoopObservableItemsSource2.cs (1)
35 if (args.Action == 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)
328 case NotifyCollectionChangedAction.Reset: 349 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:
Microsoft.Maui.Controls.Compatibility (12)
iOS\CollectionView\CarouselViewController.cs (1)
221 if (e.Action == NotifyCollectionChangedAction.Reset)
iOS\CollectionView\ObservableGroupedSource.cs (1)
152 case NotifyCollectionChangedAction.Reset:
iOS\CollectionView\ObservableItemsSource.cs (2)
126 case NotifyCollectionChangedAction.Reset: 136 var args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
iOS\Renderers\CarouselPageRenderer.cs (1)
290 if (action == NotifyCollectionChangedAction.Reset)
iOS\Renderers\ListViewRenderer.cs (6)
576 if (Control.IndexPathsForVisibleRows == null && e.Action != NotifyCollectionChangedAction.Reset) 595 goto case NotifyCollectionChangedAction.Reset; 603 goto case NotifyCollectionChangedAction.Reset; 614 goto case NotifyCollectionChangedAction.Reset; 625 goto case NotifyCollectionChangedAction.Reset; 634 case NotifyCollectionChangedAction.Reset:
iOS\Renderers\TabbedRenderer.cs (1)
79 OnPagesChanged(null, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
PresentationCore (3)
System\Windows\FreezableCollection.cs (2)
164OnCollectionChanged(NotifyCollectionChangedAction.Reset, 0, null, 0, null); 742case NotifyCollectionChangedAction.Reset:
System\Windows\Ink\StrokeCollection.cs (1)
643args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
PresentationFramework (81)
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
162OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 190OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Annotations\XmlElementCollection.cs (1)
240OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Controls\InnerItemCollectionView.cs (1)
560OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\CompositeCollectionView.cs (7)
356OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 481args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 528args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 604args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset); 610case NotifyCollectionChangedAction.Reset: 776case NotifyCollectionChangedAction.Reset: 1455case NotifyCollectionChangedAction.Reset:
MS\Internal\Data\DifferencingCollection.cs (1)
237OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Data\EnumerableCollectionView.cs (2)
477case NotifyCollectionChangedAction.Reset: 512OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
MS\Internal\Navigation\JournalEntryStack.cs (1)
25CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Annotations\Annotation.cs (3)
729case NotifyCollectionChangedAction.Reset: 783case NotifyCollectionChangedAction.Reset: 832case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGrid.cs (8)
242case NotifyCollectionChangedAction.Reset: 257visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.Reset); 977case NotifyCollectionChangedAction.Reset: 5341if (e.Action == NotifyCollectionChangedAction.Reset) 5358else if (e.Action == NotifyCollectionChangedAction.Reset) 7285case NotifyCollectionChangedAction.Reset: 7423case NotifyCollectionChangedAction.Reset: 7676else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\DataGridCellsPanel.cs (1)
2058case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\DataGridColumnCollection.cs (2)
125case NotifyCollectionChangedAction.Reset: 131DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.Reset, -1, null, -1);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
227newArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset);
System\Windows\Controls\GridViewColumnCollection.cs (1)
288return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset, list);
System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (1)
22: base(NotifyCollectionChangedAction.Reset) // NotifyCollectionChangedEventArgs doesn't have 0 parameter constructor, so pass in an arbitrary parameter.
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
726case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\GridViewRowPresenter.cs (1)
387case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemCollection.cs (8)
448OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1710OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1960OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 2175goto case NotifyCollectionChangedAction.Reset; 2183goto case NotifyCollectionChangedAction.Reset; 2194goto case NotifyCollectionChangedAction.Reset; 2204goto case NotifyCollectionChangedAction.Reset; 2226case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\ItemContainerGenerator.cs (3)
2388if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.Reset) 2425case NotifyCollectionChangedAction.Reset: 2774ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset, position, 0, 0));
System\Windows\Controls\ItemsControl.cs (2)
303if (e.Action == NotifyCollectionChangedAction.Reset) 3750case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\MultipleCopiesCollection.cs (2)
77case NotifyCollectionChangedAction.Reset: 432OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Controls\Panel.cs (1)
702case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
347e.Action != NotifyCollectionChangedAction.Reset || columns.Count == 0,
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
165else if (e.Action == NotifyCollectionChangedAction.Reset)
System\Windows\Controls\Primitives\Selector.cs (3)
886case NotifyCollectionChangedAction.Reset: 1104if (e.Action == NotifyCollectionChangedAction.Reset || 1192case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
394case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\TreeView.cs (1)
416case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\TreeViewItem.cs (1)
946case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
966case NotifyCollectionChangedAction.Reset: 1139case NotifyCollectionChangedAction.Reset:
System\Windows\Controls\VirtualizingStackPanel.cs (3)
3588case NotifyCollectionChangedAction.Reset: 3696Debug.Assert(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1); 3745ItemsChangedEventArgs newArgs = new ItemsChangedEventArgs(NotifyCollectionChangedAction.Reset,
System\Windows\Data\BindingGroup.cs (1)
1319case NotifyCollectionChangedAction.Reset:
System\Windows\Data\BindingListCollectionView.cs (3)
1386OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1550case NotifyCollectionChangedAction.Reset: 2455case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CollectionContainer.cs (1)
366OnContainedCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\Data\CollectionView.cs (4)
869OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1113case NotifyCollectionChangedAction.Reset: 1887if (args.Action == NotifyCollectionChangedAction.Reset) 1975case NotifyCollectionChangedAction.Reset:
System\Windows\Data\CompositeCollection.cs (1)
138OnCollectionChanged(NotifyCollectionChangedAction.Reset);
System\Windows\Data\ListCollectionView.cs (6)
156OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); 1667case NotifyCollectionChangedAction.Reset: 1681if (args.Action != NotifyCollectionChangedAction.Reset) 1697if (args.Action == NotifyCollectionChangedAction.Reset) 2522case NotifyCollectionChangedAction.Reset: 2640if (action == NotifyCollectionChangedAction.Reset)
System\Windows\Navigation\JournalEntryListConverter.cs (1)
181CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
System\Windows\ResourceDictionary.cs (1)
1851if (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)
48case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1088e.Action == NotifyCollectionChangedAction.Reset)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2413case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
569case NotifyCollectionChangedAction.Reset:
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
321case 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);