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)
164
OnCollectionChanged(NotifyCollectionChangedAction.
Reset
, 0, null, 0, null);
742
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Ink\StrokeCollection.cs (1)
643
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
PresentationFramework (81)
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
162
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
190
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
MS\Internal\Annotations\XmlElementCollection.cs (1)
240
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
MS\Internal\Controls\InnerItemCollectionView.cs (1)
560
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
MS\Internal\Data\CompositeCollectionView.cs (7)
356
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
481
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
528
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
604
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
610
case NotifyCollectionChangedAction.
Reset
:
776
case NotifyCollectionChangedAction.
Reset
:
1455
case NotifyCollectionChangedAction.
Reset
:
MS\Internal\Data\DifferencingCollection.cs (1)
237
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
MS\Internal\Data\EnumerableCollectionView.cs (2)
477
case NotifyCollectionChangedAction.
Reset
:
512
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
MS\Internal\Navigation\JournalEntryStack.cs (1)
25
CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
System\Windows\Annotations\Annotation.cs (3)
729
case NotifyCollectionChangedAction.
Reset
:
783
case NotifyCollectionChangedAction.
Reset
:
832
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\DataGrid.cs (8)
242
case NotifyCollectionChangedAction.
Reset
:
257
visibleColumnsChanged |= (e.Action == NotifyCollectionChangedAction.
Reset
);
977
case NotifyCollectionChangedAction.
Reset
:
5341
if (e.Action == NotifyCollectionChangedAction.
Reset
)
5358
else if (e.Action == NotifyCollectionChangedAction.
Reset
)
7285
case NotifyCollectionChangedAction.
Reset
:
7423
case NotifyCollectionChangedAction.
Reset
:
7676
else if (e.Action == NotifyCollectionChangedAction.
Reset
)
System\Windows\Controls\DataGridCellsPanel.cs (1)
2058
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\DataGridColumnCollection.cs (2)
125
case NotifyCollectionChangedAction.
Reset
:
131
DataGridOwner.UpdateColumnsOnVirtualizedCellInfoCollections(NotifyCollectionChangedAction.
Reset
, -1, null, -1);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
227
newArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
System\Windows\Controls\GridViewColumnCollection.cs (1)
288
return 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)
726
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\GridViewRowPresenter.cs (1)
387
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\ItemCollection.cs (8)
448
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
1710
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
1960
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
2175
goto case NotifyCollectionChangedAction.
Reset
;
2183
goto case NotifyCollectionChangedAction.
Reset
;
2194
goto case NotifyCollectionChangedAction.
Reset
;
2204
goto case NotifyCollectionChangedAction.
Reset
;
2226
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\ItemContainerGenerator.cs (3)
2388
if (sender != ItemsInternal && args.Action != NotifyCollectionChangedAction.
Reset
)
2425
case NotifyCollectionChangedAction.
Reset
:
2774
ItemsChanged(this, new ItemsChangedEventArgs(NotifyCollectionChangedAction.
Reset
, position, 0, 0));
System\Windows\Controls\ItemsControl.cs (2)
303
if (e.Action == NotifyCollectionChangedAction.
Reset
)
3750
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\MultipleCopiesCollection.cs (2)
77
case NotifyCollectionChangedAction.
Reset
:
432
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
System\Windows\Controls\Panel.cs (1)
702
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
347
e.Action != NotifyCollectionChangedAction.
Reset
|| columns.Count == 0,
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
165
else if (e.Action == NotifyCollectionChangedAction.
Reset
)
System\Windows\Controls\Primitives\Selector.cs (3)
886
case NotifyCollectionChangedAction.
Reset
:
1104
if (e.Action == NotifyCollectionChangedAction.
Reset
||
1192
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
394
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\TreeView.cs (1)
416
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\TreeViewItem.cs (1)
946
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
966
case NotifyCollectionChangedAction.
Reset
:
1139
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Controls\VirtualizingStackPanel.cs (3)
3588
case NotifyCollectionChangedAction.
Reset
:
3696
Debug.Assert(args.Action == NotifyCollectionChangedAction.
Reset
&& args.ItemCount == 1);
3745
ItemsChangedEventArgs newArgs = new ItemsChangedEventArgs(NotifyCollectionChangedAction.
Reset
,
System\Windows\Data\BindingGroup.cs (1)
1319
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Data\BindingListCollectionView.cs (3)
1386
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
1550
case NotifyCollectionChangedAction.
Reset
:
2455
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Data\CollectionContainer.cs (1)
366
OnContainedCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
System\Windows\Data\CollectionView.cs (4)
869
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
1113
case NotifyCollectionChangedAction.
Reset
:
1887
if (args.Action == NotifyCollectionChangedAction.
Reset
)
1975
case NotifyCollectionChangedAction.
Reset
:
System\Windows\Data\CompositeCollection.cs (1)
138
OnCollectionChanged(NotifyCollectionChangedAction.
Reset
);
System\Windows\Data\ListCollectionView.cs (6)
156
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
1667
case NotifyCollectionChangedAction.
Reset
:
1681
if (args.Action != NotifyCollectionChangedAction.
Reset
)
1697
if (args.Action == NotifyCollectionChangedAction.
Reset
)
2522
case NotifyCollectionChangedAction.
Reset
:
2640
if (action == NotifyCollectionChangedAction.
Reset
)
System\Windows\Navigation\JournalEntryListConverter.cs (1)
181
CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
System\Windows\ResourceDictionary.cs (1)
1851
if (e.Action != NotifyCollectionChangedAction.
Reset
)
System.ObjectModel (5)
System\Collections\ObjectModel\ObservableCollection.cs (1)
319
internal static readonly NotifyCollectionChangedEventArgs ResetCollectionChanged = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (4)
28
if (action != NotifyCollectionChangedAction.
Reset
)
30
throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.
Reset
), nameof(action));
56
case NotifyCollectionChangedAction.
Reset
:
104
case NotifyCollectionChangedAction.
Reset
:
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
48
case NotifyCollectionChangedAction.
Reset
:
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1088
e.Action == NotifyCollectionChangedAction.
Reset
)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2413
case NotifyCollectionChangedAction.
Reset
:
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
569
case NotifyCollectionChangedAction.
Reset
:
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
321
case NotifyCollectionChangedAction.
Reset
:
WindowsBase.Tests (41)
System\Collections\Specialized\CollectionChangedEventManagerTests.cs (34)
13
yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
) };
112
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
116
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
123
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
127
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
134
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
138
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
145
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
149
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
184
yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
) };
294
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
298
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
305
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
309
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
316
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
320
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
327
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
331
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
363
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
368
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
399
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
401
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
406
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
408
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
428
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
434
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
462
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
467
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
487
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
489
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
494
source1.OnCollectionChanged(source1, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
496
source2.OnCollectionChanged(source2, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
522
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
528
source.OnCollectionChanged(source, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
));
System\ComponentModel\CurrentChangedEventManagerTests.cs (1)
197
yield return new object?[] { new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.
Reset
) };
System\ComponentModel\SortDescriptionCollectionTests.cs (6)
424
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[0].Action);
437
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[2].Action);
447
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[3].Action);
496
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[0].Action);
509
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[2].Action);
519
Assert.Equal(NotifyCollectionChangedAction.
Reset
, events[3].Action);