197 references to Action
Microsoft.Maui.Controls (38)
BindableLayout\BindableLayout.cs (1)
499
if (e.
Action
== NotifyCollectionChangedAction.Replace)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (2)
550
if (Control.IndexPathsForVisibleRows == null && e.
Action
!= NotifyCollectionChangedAction.Reset)
565
switch (e.
Action
)
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (1)
185
switch (e.
Action
)
Element\Element.cs (1)
849
switch (e.
Action
)
GestureElement.cs (1)
36
switch (args.
Action
)
Handlers\Items\iOS\CarouselViewController.cs (3)
318
if (e.
Action
== NotifyCollectionChangedAction.Remove)
323
if (e.
Action
== NotifyCollectionChangedAction.Reset)
328
if (e.
Action
== NotifyCollectionChangedAction.Add)
Handlers\Items\iOS\ObservableGroupedSource.cs (1)
176
switch (args.
Action
)
Handlers\Items\iOS\ObservableItemsSource.cs (2)
136
switch (args.
Action
)
183
if (args.
Action
== NotifyCollectionChangedAction.Remove)
Handlers\Items2\iOS\CarouselViewController2.cs (4)
238
if (e.
Action
== NotifyCollectionChangedAction.Remove)
243
if (e.
Action
== NotifyCollectionChangedAction.Reset)
248
if (e.
Action
== NotifyCollectionChangedAction.Add)
270
if (e.
Action
== NotifyCollectionChangedAction.Reset)
Handlers\Items2\iOS\LoopObservableItemsSource2.cs (3)
35
if (args.
Action
== NotifyCollectionChangedAction.Reset)
39
if (args.
Action
== NotifyCollectionChangedAction.Add)
46
if (args.
Action
== NotifyCollectionChangedAction.Remove)
Internals\NotifyCollectionChangedEventArgsExtensions.cs (3)
36
switch (self.
Action
)
87
return self.
Action
;
93
switch (e.
Action
)
Items\MarshalingObservableCollection.cs (2)
54
if (args.
Action
== NotifyCollectionChangedAction.Reset)
70
switch (args.
Action
)
Label\Label.cs (2)
316
switch (e.
Action
)
337
switch (e.
Action
)
LegacyLayouts\Layout.cs (1)
619
if (e.
Action
== NotifyCollectionChangedAction.Move)
MultiPage.cs (1)
223
switch (e.
Action
)
ObservableWrapper.cs (1)
178
switch (e.
Action
)
Picker\Picker.cs (1)
291
switch (e.
Action
)
ResourceDictionary.cs (3)
99
switch (e.
Action
)
111
if (e.
Action
== NotifyCollectionChangedAction.Move)
116
if (e.
Action
== NotifyCollectionChangedAction.Reset)
TemplatedItemsList.cs (4)
798
switch (e.
Action
)
1006
switch (e.
Action
)
1165
switch (e.
Action
)
1341
switch (e.
Action
)
View\View.cs (1)
121
switch (args.
Action
)
Microsoft.Maui.Controls.Compatibility (7)
iOS\CollectionView\CarouselViewController.cs (3)
218
if (e.
Action
== NotifyCollectionChangedAction.Remove)
221
if (e.
Action
== NotifyCollectionChangedAction.Reset)
224
if (e.
Action
== NotifyCollectionChangedAction.Add)
iOS\CollectionView\ObservableGroupedSource.cs (1)
138
switch (args.
Action
)
iOS\CollectionView\ObservableItemsSource.cs (1)
112
switch (args.
Action
)
iOS\Renderers\ListViewRenderer.cs (2)
576
if (Control.IndexPathsForVisibleRows == null && e.
Action
!= NotifyCollectionChangedAction.Reset)
591
switch (e.
Action
)
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\TreeViewItemBase.cs (1)
110
if (args.
Action
is not NotifyCollectionChangedAction.Add and not NotifyCollectionChangedAction.Remove)
PresentationFramework (123)
MS\Internal\Data\CompositeCollectionView.cs (28)
390
switch (args.
Action
)
398
if (args.
Action
== NotifyCollectionChangedAction.Add)
412
args.
Action
, TraceLog.IdFor(item));
427
if (args.
Action
== NotifyCollectionChangedAction.Add)
433
else if (args.
Action
== NotifyCollectionChangedAction.Remove)
440
args = new NotifyCollectionChangedEventArgs(args.
Action
, item, index);
444
if (args.
Action
== NotifyCollectionChangedAction.Add)
452
Debug.Assert(args.
Action
== NotifyCollectionChangedAction.Remove);
459
if (args.
Action
== NotifyCollectionChangedAction.Add)
467
Invariant.Assert(args.
Action
== NotifyCollectionChangedAction.Remove);
508
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.NewItems, args.OldItems, startingIndex);
580
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.OldItems, newStartingIndex, oldStartingIndex);
612
_traceLog?.Add("ProcessCollectionChanged action = {0}", args.
Action
);
643
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
715
TraceLog.IdFor(sender), args.
Action
, TraceLog.IdFor(args.OldItems[0]), TraceLog.IdFor(args.NewItems[0]));
725
switch (args.
Action
)
728
TraceContainerCollectionChange(sender, args.
Action
, null, args.NewItems[0]);
736
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.NewItems[0], flatNewIndex);
740
TraceContainerCollectionChange(sender, args.
Action
, args.OldItems[0], null);
748
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.OldItems[0], flatOldIndex);
752
TraceContainerCollectionChange(sender, args.
Action
, args.OldItems[0], args.NewItems[0]);
756
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.NewItems[0], args.OldItems[0], flatOldIndex);
760
TraceContainerCollectionChange(sender, args.
Action
, args.OldItems[0], args.NewItems[0]);
773
args = new NotifyCollectionChangedEventArgs(args.
Action
, args.OldItems[0], flatNewIndex, flatOldIndex);
779
TraceLog.IdFor(sender), args.
Action
);
786
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
1431
switch (e.
Action
)
1459
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
MS\Internal\Data\EnumerableCollectionView.cs (1)
400
switch (args.
Action
)
System\Windows\Annotations\Annotation.cs (6)
702
switch (e.
Action
)
734
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
756
switch (e.
Action
)
788
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
805
switch (e.
Action
)
837
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Controls\DataGrid.cs (14)
225
switch (e.
Action
)
257
visibleColumnsChanged |= (e.
Action
== NotifyCollectionChangedAction.Reset);
267
if (visibleColumnsChanged && e.
Action
!= NotifyCollectionChangedAction.Move)
946
switch (e.
Action
)
5341
if (e.
Action
== NotifyCollectionChangedAction.Reset)
5351
if (e.
Action
== NotifyCollectionChangedAction.Remove || e.
Action
== NotifyCollectionChangedAction.Replace)
5358
else if (e.
Action
== NotifyCollectionChangedAction.Reset)
7248
switch (e.
Action
)
7393
switch (e.
Action
)
7653
if (e.
Action
== NotifyCollectionChangedAction.Add)
7661
else if ((e.
Action
== NotifyCollectionChangedAction.Remove) || (e.
Action
== NotifyCollectionChangedAction.Replace))
7676
else if (e.
Action
== NotifyCollectionChangedAction.Reset)
System\Windows\Controls\DataGridColumnCollection.cs (1)
86
switch (e.
Action
)
System\Windows\Controls\DataGridColumnHeaderCollection.cs (5)
208
switch (e.
Action
)
211
newArgs = new NotifyCollectionChangedEventArgs(e.
Action
, HeadersFromColumns(e.NewItems), e.NewStartingIndex);
215
newArgs = new NotifyCollectionChangedEventArgs(e.
Action
, HeadersFromColumns(e.OldItems), e.OldStartingIndex);
219
newArgs = new NotifyCollectionChangedEventArgs(e.
Action
, HeadersFromColumns(e.OldItems), e.NewStartingIndex, e.OldStartingIndex);
223
newArgs = new NotifyCollectionChangedEventArgs(e.
Action
, HeadersFromColumns(e.NewItems), HeadersFromColumns(e.OldItems), e.OldStartingIndex);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
692
switch (e.
Action
)
System\Windows\Controls\GridViewRowPresenter.cs (2)
364
if (e.
Action
== NotifyCollectionChangedAction.Move)
370
switch (e.
Action
)
System\Windows\Controls\ItemCollection.cs (2)
2170
switch (e.
Action
)
2231
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Controls\ItemContainerGenerator.cs (3)
2388
if (sender != ItemsInternal && args.
Action
!= NotifyCollectionChangedAction.Reset)
2391
switch (args.
Action
)
2430
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
System\Windows\Controls\ItemsControl.cs (2)
303
if (e.
Action
== NotifyCollectionChangedAction.Reset)
3685
switch (e.
Action
)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
47
switch (e.
Action
)
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
347
e.
Action
!= NotifyCollectionChangedAction.Reset || columns.Count == 0,
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (3)
148
if (e.
Action
== NotifyCollectionChangedAction.Remove
149
|| e.
Action
== NotifyCollectionChangedAction.Replace)
165
else if (e.
Action
== NotifyCollectionChangedAction.Reset)
System\Windows\Controls\Primitives\Selector.cs (6)
870
switch (e.
Action
)
913
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
1104
if (e.
Action
== NotifyCollectionChangedAction.Reset ||
1105
(e.
Action
== NotifyCollectionChangedAction.Add &&
1139
switch (e.
Action
)
1243
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Controls\TabControl.cs (1)
380
if (e.
Action
== NotifyCollectionChangedAction.Remove && SelectedIndex == -1)
System\Windows\Controls\TreeView.cs (2)
413
switch (e.
Action
)
440
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Controls\TreeViewItem.cs (2)
943
switch (e.
Action
)
980
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
948
switch (e.
Action
)
System\Windows\Data\BindingGroup.cs (1)
1301
switch (e.
Action
)
System\Windows\Data\BindingListCollectionView.cs (7)
1497
switch (args.
Action
)
1558
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
1810
switch (e.
Action
)
2295
if (e.
Action
== NotifyCollectionChangedAction.Add)
2299
else if (e.
Action
== NotifyCollectionChangedAction.Remove)
2431
switch (e.
Action
)
2459
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Data\CollectionView.cs (6)
920
if (args.
Action
!= NotifyCollectionChangedAction.Replace &&
921
args.
Action
!= NotifyCollectionChangedAction.Move)
1079
switch (args.
Action
)
1887
if (args.
Action
== NotifyCollectionChangedAction.Reset)
1949
switch (e.
Action
)
1979
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
System\Windows\Data\ListCollectionView.cs (17)
1665
switch (args.
Action
)
1681
if (args.
Action
!= NotifyCollectionChangedAction.Reset)
1683
if (args.
Action
!= NotifyCollectionChangedAction.Remove && args.NewStartingIndex < 0
1684
|| args.
Action
!= NotifyCollectionChangedAction.Add && args.OldStartingIndex < 0)
1697
if (args.
Action
== NotifyCollectionChangedAction.Reset)
1720
if (args.
Action
== NotifyCollectionChangedAction.Add && _newItemIndex == -2)
1729
if (args.
Action
!= NotifyCollectionChangedAction.Remove)
1736
if (args.
Action
!= NotifyCollectionChangedAction.Add)
1749
switch (args.
Action
)
1810
NotifyCollectionChangedAction effectiveAction = args.
Action
;
1822
if (args.
Action
!= NotifyCollectionChangedAction.Add)
2366
switch (e.
Action
)
2412
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
2498
switch (e.
Action
)
2526
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.
Action
));
2988
if (e.
Action
== NotifyCollectionChangedAction.Add)
2992
else if (e.
Action
== NotifyCollectionChangedAction.Remove)
System\Windows\Documents\DocumentSequence.cs (2)
714
if (args.
Action
== NotifyCollectionChangedAction.Add)
748
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
592
if (args.
Action
== NotifyCollectionChangedAction.Add)
605
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
635
throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.
Action
));
System\Windows\ResourceDictionary.cs (5)
1851
if (e.
Action
!= NotifyCollectionChangedAction.Reset)
1863
if (e.
Action
== NotifyCollectionChangedAction.Remove
1864
|| e.
Action
== NotifyCollectionChangedAction.Replace)
1881
if (e.
Action
== NotifyCollectionChangedAction.Add
1882
|| e.
Action
== NotifyCollectionChangedAction.Replace)
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
1086
if (e.
Action
== NotifyCollectionChangedAction.Remove ||
1087
e.
Action
== NotifyCollectionChangedAction.Replace ||
1088
e.
Action
== NotifyCollectionChangedAction.Reset)
1094
e.
Action
== NotifyCollectionChangedAction.Move ||
1095
e.
Action
== NotifyCollectionChangedAction.Remove)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2410
switch (e.
Action
)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
538
switch (e.
Action
)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
319
switch (e.
Action
)
WindowsBase.Tests (20)
System\ComponentModel\SortDescriptionCollectionTests.cs (20)
90
Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].
Action
);
95
Assert.Equal(NotifyCollectionChangedAction.Add, events[1].
Action
);
176
Assert.Equal(NotifyCollectionChangedAction.Add, events[0].
Action
);
190
Assert.Equal(NotifyCollectionChangedAction.Add, events[1].
Action
);
255
Assert.Equal(NotifyCollectionChangedAction.Add, events[0].
Action
);
269
Assert.Equal(NotifyCollectionChangedAction.Add, events[1].
Action
);
344
Assert.Equal(NotifyCollectionChangedAction.Add, events[0].
Action
);
358
Assert.Equal(NotifyCollectionChangedAction.Add, events[1].
Action
);
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
);
582
Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].
Action
);
594
Assert.Equal(NotifyCollectionChangedAction.Remove, events[1].
Action
);
668
Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].
Action
);
680
Assert.Equal(NotifyCollectionChangedAction.Remove, events[1].
Action
);
746
Assert.Equal(NotifyCollectionChangedAction.Remove, events[0].
Action
);
751
Assert.Equal(NotifyCollectionChangedAction.Add, events[1].
Action
);