1 interface inheriting from INotifyCollectionChanged
Microsoft.Maui.Controls (1)
ITemplatedItemsList.cs (1)
11
public interface ITemplatedItemsList<TItem> : IReadOnlyList<TItem>,
INotifyCollectionChanged
where TItem : BindableObject
24 implementations of INotifyCollectionChanged
Microsoft.Maui (1)
Primitives\LockableObservableListWrapper.cs (1)
12
public class LockableObservableListWrapper : IList<string>, ICollection<string>,
INotifyCollectionChanged
, INotifyPropertyChanged, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
Microsoft.Maui.Controls (8)
Items\MarshalingObservableCollection.cs (1)
16
public class MarshalingObservableCollection : List<object>,
INotifyCollectionChanged
ListProxy.cs (1)
12
internal sealed class ListProxy : IReadOnlyList<object>, IListProxy,
INotifyCollectionChanged
ObservableWrapper.cs (1)
10
internal class ObservableWrapper<TTrack, TRestrict> : IList<TRestrict>, IList,
INotifyCollectionChanged
where TTrack : Element where TRestrict : TTrack
Shell\MenuItemCollection.cs (1)
10
public sealed class MenuItemCollection : IEnumerable<MenuItem>, IList<MenuItem>,
INotifyCollectionChanged
Shell\ShellElementCollection.cs (1)
15
INotifyCollectionChanged
SwipeView\SwipeItems.cs (1)
13
public class SwipeItems : Element, IList<ISwipeItem>,
INotifyCollectionChanged
TableView\TableSection.cs (1)
13
public abstract class TableSectionBase<T> : TableSectionBase, IList<T>, IVisualTreeElement,
INotifyCollectionChanged
where T : BindableObject
TemplatedItemsList.cs (1)
1226
class ShortNamesProxy : IReadOnlyList<string>,
INotifyCollectionChanged
, IDisposable
PresentationCore (3)
System\Windows\FreezableCollection.cs (1)
25
public class FreezableCollection<T>: Animatable, IList, IList<T>,
INotifyCollectionChanged
, INotifyPropertyChanged
System\Windows\Ink\StrokeCollection.cs (1)
21
public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged,
INotifyCollectionChanged
System\Windows\Ink\StrokeCollection2.cs (1)
18
public partial class StrokeCollection : Collection<Stroke>, INotifyPropertyChanged,
INotifyCollectionChanged
PresentationFramework (9)
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
24
internal class CollectionViewGroupRoot : CollectionViewGroupInternal,
INotifyCollectionChanged
MS\Internal\Navigation\JournalEntryStack.cs (2)
14
internal abstract class JournalEntryStack : IEnumerable,
INotifyCollectionChanged
152
internal class LimitedJournalEntryStackEnumerable : IEnumerable,
INotifyCollectionChanged
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
16
internal class DataGridColumnHeaderCollection : IEnumerable,
INotifyCollectionChanged
, IDisposable
System\Windows\Controls\MultipleCopiesCollection.cs (1)
22
INotifyCollectionChanged
,
System\Windows\Data\CollectionContainer.cs (1)
26
public class CollectionContainer : DependencyObject,
INotifyCollectionChanged
, IWeakEventListener
System\Windows\Data\CompositeCollection.cs (1)
26
public class CompositeCollection : IList,
INotifyCollectionChanged
, ICollectionViewFactory, IWeakEventListener
System\Windows\Documents\DocumentReferenceCollection.cs (1)
20
public sealed class DocumentReferenceCollection : IEnumerable<DocumentReference>,
INotifyCollectionChanged
System\Windows\Navigation\JournalEntryListConverter.cs (1)
134
internal class UnifiedJournalEntryStackEnumerable : IEnumerable,
INotifyCollectionChanged
System.ObjectModel (2)
System\Collections\ObjectModel\ObservableCollection.cs (1)
22
public class ObservableCollection<T> : Collection<T>,
INotifyCollectionChanged
, INotifyPropertyChanged
System\Collections\ObjectModel\ReadOnlyObservableCollection.cs (1)
19
public class ReadOnlyObservableCollection<T> : ReadOnlyCollection<T>,
INotifyCollectionChanged
, INotifyPropertyChanged
WindowsBase.Tests (1)
System\Collections\Specialized\CollectionChangedEventManagerTests.cs (1)
540
private class CustomNotifyCollectionChanged :
INotifyCollectionChanged
170 references to INotifyCollectionChanged
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
179
|| sysType == typeof(System.Collections.Specialized.
INotifyCollectionChanged
)
Microsoft.Maui (3)
Primitives\LockableObservableListWrapper.cs (3)
16
event NotifyCollectionChangedEventHandler?
INotifyCollectionChanged
.CollectionChanged
18
add { ((
INotifyCollectionChanged
)_list).CollectionChanged += value; }
19
remove { ((
INotifyCollectionChanged
)_list).CollectionChanged -= value; }
Microsoft.Maui.Controls (56)
BindableLayout\BindableLayout.cs (2)
278
if (_itemsSource is
INotifyCollectionChanged
)
285
if (_itemsSource is
INotifyCollectionChanged
c)
Border\Border.cs (2)
241
if (StrokeDashArray is
INotifyCollectionChanged
oldCollection)
246
if (StrokeDashArray is
INotifyCollectionChanged
newCollection)
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (5)
135
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
137
((
INotifyCollectionChanged
)cell.ContextActions).CollectionChanged += OnContextItemsChanged;
157
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
172
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged += OnContextItemsChanged;
293
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (2)
1465
var
incc = (
INotifyCollectionChanged
)templatedList.ShortNames;
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (3)
201
((
INotifyCollectionChanged
)oldPage.ToolbarItems).CollectionChanged -= OnToolbarItemsChanged;
213
((
INotifyCollectionChanged
)newPage.ToolbarItems).CollectionChanged += OnToolbarItemsChanged;
889
((
INotifyCollectionChanged
)Page.ToolbarItems).CollectionChanged -= OnToolbarItemsChanged;
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (4)
97
var
listProxy = (
INotifyCollectionChanged
)SearchController.ListProxy;
171
((
INotifyCollectionChanged
)e.OldList).CollectionChanged -= OnProxyCollectionChanged;
178
((
INotifyCollectionChanged
)e.NewList).CollectionChanged += OnProxyCollectionChanged;
Handlers\Items\iOS\ItemsSourceFactory.cs (4)
21
case IList _ when itemsSource is
INotifyCollectionChanged
:
23
case IEnumerable _ when itemsSource is
INotifyCollectionChanged
:
53
case IList _ when itemsSource is
INotifyCollectionChanged
:
55
case IEnumerable _ when itemsSource is
INotifyCollectionChanged
:
Handlers\Items\iOS\ObservableGroupedSource.cs (3)
24
if (_groupSource is
INotifyCollectionChanged
incc)
111
if (_groupSource is
INotifyCollectionChanged
incc)
136
if (_groupSource[n] is
INotifyCollectionChanged
&& _groupSource[n] is IEnumerable list)
Handlers\Items\iOS\ObservableItemsSource.cs (2)
30
((
INotifyCollectionChanged
)itemSource).CollectionChanged += CollectionChanged;
55
((
INotifyCollectionChanged
)_itemsSource).CollectionChanged -= CollectionChanged;
Handlers\Items\iOS\ReorderableItemsViewController.cs (2)
113
var fromItemsSource = fromList is
INotifyCollectionChanged
? itemsSource.GroupItemsViewSource(sourceIndexPath) : null;
117
var toItemsSource = toList is
INotifyCollectionChanged
? itemsSource.GroupItemsViewSource(destinationIndexPath) : null;
Handlers\Items2\iOS\ItemsSourceFactory2.cs (2)
22
IList _ when itemsSource is
INotifyCollectionChanged
=> new LoopObservableItemsSource2(itemsSource as IList, collectionViewController, loop),
23
IEnumerable _ when itemsSource is
INotifyCollectionChanged
=> new LoopObservableItemsSource2(itemsSource as IEnumerable, collectionViewController, loop),
Handlers\Items2\iOS\ReorderableItemsViewController2.cs (2)
113
var fromItemsSource = fromList is
INotifyCollectionChanged
? itemsSource.GroupItemsViewSource(sourceIndexPath) : null;
117
var toItemsSource = toList is
INotifyCollectionChanged
? itemsSource.GroupItemsViewSource(destinationIndexPath) : null;
IndicatorView\IndicatorView.cs (2)
162
if (oldItemsSource is
INotifyCollectionChanged
oldCollection)
165
if (ItemsSource is
INotifyCollectionChanged
collection)
Internals\WeakEventProxy.cs (5)
65
class WeakNotifyCollectionChangedProxy : WeakEventProxy<
INotifyCollectionChanged
, NotifyCollectionChangedEventHandler>
69
public WeakNotifyCollectionChangedProxy(
INotifyCollectionChanged
source, NotifyCollectionChangedEventHandler handler)
86
public override void Subscribe(
INotifyCollectionChanged
source, NotifyCollectionChangedEventHandler handler)
88
if (TryGetSource(out
var
s))
99
if (TryGetSource(out
var
s))
Items\MarshalingObservableCollection.cs (2)
24
if (!(list is
INotifyCollectionChanged
incc))
25
throw new ArgumentException($"{nameof(list)} must implement {nameof(
INotifyCollectionChanged
)}");
Items\SelectionList.cs (1)
24
if (items is
INotifyCollectionChanged
incc)
ListProxy.cs (1)
47
if (enumerable is
INotifyCollectionChanged
changed)
Picker\Picker.cs (5)
72
((
INotifyCollectionChanged
)Items).CollectionChanged += OnItemsCollectionChanged;
266
var
oldObservable = oldValue as
INotifyCollectionChanged
;
270
var
newObservable = newValue as
INotifyCollectionChanged
;
Shell\MenuItemCollection.cs (3)
14
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
16
add { ((
INotifyCollectionChanged
)_inner).CollectionChanged += value; }
17
remove { ((
INotifyCollectionChanged
)_inner).CollectionChanged -= value; }
Shell\ShellContent.cs (1)
122
((
INotifyCollectionChanged
)MenuItems).CollectionChanged += MenuItemsCollectionChanged;
Shell\ShellElementCollection.cs (2)
41
((
INotifyCollectionChanged
)_inner).CollectionChanged += InnerCollectionChanged;
70
((
INotifyCollectionChanged
)_visibleItems).CollectionChanged += OnVisibleItemsChanged;
Shell\ShellItem.cs (1)
175
(Items as
INotifyCollectionChanged
).CollectionChanged += ItemsCollectionChanged;
Microsoft.Maui.Controls.Compatibility (19)
iOS\CollectionView\ItemsSourceFactory.cs (4)
20
case IList _ when itemsSource is
INotifyCollectionChanged
:
22
case IEnumerable _ when itemsSource is
INotifyCollectionChanged
:
50
case IList _ when itemsSource is
INotifyCollectionChanged
:
52
case IEnumerable _ when itemsSource is
INotifyCollectionChanged
:
iOS\CollectionView\ObservableGroupedSource.cs (3)
25
if (_groupSource is
INotifyCollectionChanged
incc)
102
if (_groupSource is
INotifyCollectionChanged
incc)
124
if (_groupSource[n] is
INotifyCollectionChanged
&& _groupSource[n] is IEnumerable list)
iOS\CollectionView\ObservableItemsSource.cs (2)
31
((
INotifyCollectionChanged
)itemSource).CollectionChanged += CollectionChanged;
54
((
INotifyCollectionChanged
)_itemsSource).CollectionChanged -= CollectionChanged;
iOS\ContextActionCell.cs (5)
140
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
142
((
INotifyCollectionChanged
)cell.ContextActions).CollectionChanged += OnContextItemsChanged;
162
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
177
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged += OnContextItemsChanged;
298
((
INotifyCollectionChanged
)_cell.ContextActions).CollectionChanged -= OnContextItemsChanged;
iOS\Renderers\ListViewRenderer.cs (2)
1443
var
incc = (
INotifyCollectionChanged
)templatedList.ShortNames;
iOS\Renderers\PickerRenderer.cs (3)
72
((
INotifyCollectionChanged
)e.OldElement.Items).CollectionChanged -= RowsCollectionChanged;
127
((
INotifyCollectionChanged
)e.NewElement.Items).CollectionChanged += RowsCollectionChanged;
347
((
INotifyCollectionChanged
)Element.Items).CollectionChanged -= RowsCollectionChanged;
Microsoft.Maui.Controls.Maps (2)
Map.cs (2)
269
if (oldItemsSource is
INotifyCollectionChanged
ncc)
274
if (newItemsSource is
INotifyCollectionChanged
ncc1)
netstandard (1)
netstandard.cs (1)
158
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.
INotifyCollectionChanged
))]
PresentationCore (4)
System\Windows\FreezableCollection.cs (3)
533
/// CollectionChanged event (per <see cref="
INotifyCollectionChanged
" />).
535
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
551
/// see <seealso cref="
INotifyCollectionChanged
"/>
System\Windows\Ink\StrokeCollection.cs (1)
598
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
PresentationFramework (53)
MS\Internal\Controls\InnerItemCollectionView.cs (2)
742
((
INotifyCollectionChanged
)_sort).CollectionChanged -= new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
750
((
INotifyCollectionChanged
)_sort).CollectionChanged += new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
MS\Internal\Data\CompositeCollectionView.cs (1)
349
/// this will simply raise a Reset event to <seealso cref="
INotifyCollectionChanged
.CollectionChanged"/> listeners.
MS\Internal\Data\EnumerableCollectionView.cs (3)
41
_pollForChanges = !(source is
INotifyCollectionChanged
);
56
INotifyCollectionChanged
incc = _view as
INotifyCollectionChanged
;
MS\Internal\Data\IndexedEnumerable.cs (4)
60
INotifyCollectionChanged
icc = collection as
INotifyCollectionChanged
;
335
INotifyCollectionChanged
icc = Enumerable as
INotifyCollectionChanged
;
MS\Internal\Data\ViewManager.cs (1)
742
if (!(collection is
INotifyCollectionChanged
))
MS\Internal\Navigation\JournalEntryStack.cs (2)
157
INotifyCollectionChanged
ichildnotify = ieble as
INotifyCollectionChanged
;
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
40
((
INotifyCollectionChanged
)_owner.Columns).CollectionChanged += new NotifyCollectionChangedEventHandler(OnColumnCollectionChanged);
113
((
INotifyCollectionChanged
)_owner.Columns).CollectionChanged -= new NotifyCollectionChangedEventHandler(OnColumnCollectionChanged);
System\Windows\Controls\DataGrid.cs (2)
90
((
INotifyCollectionChanged
)Items).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsCollectionChanged);
92
((
INotifyCollectionChanged
)Items.SortDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsSortDescriptionsChanged);
System\Windows\Controls\ItemCollection.cs (5)
599
((
INotifyCollectionChanged
)MySortDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
685
((
INotifyCollectionChanged
)MyGroupDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(GroupDescriptionsChanged);
1369
((
INotifyCollectionChanged
)MyLiveSortingProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(LiveSortingChanged);
1402
((
INotifyCollectionChanged
)MyLiveFilteringProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(LiveFilteringChanged);
1439
((
INotifyCollectionChanged
)MyLiveGroupingProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(LiveGroupingChanged);
System\Windows\Controls\ItemContainerGenerator.cs (3)
1260
INotifyCollectionChanged
incc = _items as
INotifyCollectionChanged
;
1269
incc = _items as
INotifyCollectionChanged
;
System\Windows\Controls\ItemsControl.cs (3)
113
((
INotifyCollectionChanged
)_items).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemCollectionChanged1);
122
((
INotifyCollectionChanged
)_items).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemCollectionChanged2);
134
((
INotifyCollectionChanged
)_groupStyle).CollectionChanged += new NotifyCollectionChangedEventHandler(OnGroupStyleChanged);
System\Windows\Data\BindingGroup.cs (1)
61
((
INotifyCollectionChanged
)_bindingExpressions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnBindingsChanged);
System\Windows\Data\BindingListCollectionView.cs (3)
49
((
INotifyCollectionChanged
)_group).CollectionChanged += new NotifyCollectionChangedEventHandler(OnGroupChanged);
50
((
INotifyCollectionChanged
)_group.GroupDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnGroupByChanged);
244
((
INotifyCollectionChanged
)_sort).CollectionChanged += new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
System\Windows\Data\CollectionContainer.cs (1)
244
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
System\Windows\Data\CollectionView.cs (6)
96
INotifyCollectionChanged
incc = collection as
INotifyCollectionChanged
;
670
INotifyCollectionChanged
incc = _sourceCollection as
INotifyCollectionChanged
;
771
/// CollectionChanged event (per <see cref="
INotifyCollectionChanged
" />).
773
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
System\Windows\Data\CollectionViewSource.cs (5)
40
((
INotifyCollectionChanged
)_sort).CollectionChanged += new NotifyCollectionChangedEventHandler(OnForwardedCollectionChanged);
43
((
INotifyCollectionChanged
)_groupBy).CollectionChanged += new NotifyCollectionChangedEventHandler(OnForwardedCollectionChanged);
354
((
INotifyCollectionChanged
)_liveSortingProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(OnForwardedCollectionChanged);
475
((
INotifyCollectionChanged
)_liveFilteringProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(OnForwardedCollectionChanged);
596
((
INotifyCollectionChanged
)_liveGroupingProperties).CollectionChanged += new NotifyCollectionChangedEventHandler(OnForwardedCollectionChanged);
System\Windows\Data\CompositeCollection.cs (2)
390
/// <see cref="
INotifyCollectionChanged
" />
392
event NotifyCollectionChangedEventHandler
INotifyCollectionChanged
.CollectionChanged
System\Windows\Data\ListCollectionView.cs (6)
70
((
INotifyCollectionChanged
)_group).CollectionChanged += new NotifyCollectionChangedEventHandler(OnGroupChanged);
71
((
INotifyCollectionChanged
)_group.GroupDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnGroupByChanged);
756
if (!(SourceList is
INotifyCollectionChanged
))
1096
bool raiseEvent = !(SourceList is
INotifyCollectionChanged
);
2894
((
INotifyCollectionChanged
)_sort).CollectionChanged -= new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
2902
((
INotifyCollectionChanged
)_sort).CollectionChanged += new NotifyCollectionChangedEventHandler(SortDescriptionsChanged);
System\Windows\Documents\DocumentReferenceCollection.cs (1)
122
/// see <seealso cref="
INotifyCollectionChanged
" />
System (1)
src\libraries\shims\System\ref\System.cs (1)
147
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.
INotifyCollectionChanged
))]
System.ObjectModel (4)
System\Collections\ObjectModel\ReadOnlyObservableCollection.cs (4)
27
((
INotifyCollectionChanged
)Items).CollectionChanged += new NotifyCollectionChangedEventHandler(HandleCollectionChanged);
37
/// CollectionChanged event (per <see cref="
INotifyCollectionChanged
" />).
39
event NotifyCollectionChangedEventHandler?
INotifyCollectionChanged
.CollectionChanged
49
/// see <seealso cref="
INotifyCollectionChanged
"/>
System.Windows (1)
System.Windows.cs (1)
6
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.
INotifyCollectionChanged
))]
WindowsBase (1)
WindowsBase.cs (1)
6
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Specialized.
INotifyCollectionChanged
))]
WindowsBase.Tests (24)
System\ComponentModel\SortDescriptionCollectionTests.cs (24)
25
INotifyCollectionChanged
collection = new SortDescriptionCollection();
29
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
32
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
36
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
40
((
INotifyCollectionChanged
)collection).CollectionChanged += null;
44
((
INotifyCollectionChanged
)collection).CollectionChanged -= null;
82
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
101
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
168
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
197
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
247
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
276
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
336
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
365
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
418
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
454
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
490
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
526
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
572
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
601
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
658
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
687
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;
738
((
INotifyCollectionChanged
)collection).CollectionChanged += handler;
757
((
INotifyCollectionChanged
)collection).CollectionChanged -= handler;