3 writes to _collection
Microsoft.Maui.Controls (3)
Compatibility\Handlers\ListView\Windows\ListViewRenderer.cs (3)
160
_collection
= null;
168
_collection
= new ObservableCollection<object>();
174
_collection
= (IList)Element.ItemsSource;
12 references to _collection
Microsoft.Maui.Controls (12)
Compatibility\Handlers\ListView\Windows\ListViewRenderer.cs (12)
156
var isStillTheSameUnderlyingItemsSource =
_collection
!= null && object.ReferenceEquals(
_collection
, Element?.ItemsSource);
170
_collection
.Add(item);
172
else if (!object.ReferenceEquals(
_collection
, Element.ItemsSource))
186
Source =
_collection
,
195
if (_collectionIsWrapped &&
_collection
!= null)
207
if (e.NewStartingIndex >=
_collection
.Count)
210
_collection
.Add((e.NewItems[i] as BindableObject).BindingContext);
215
_collection
.Insert(e.NewStartingIndex, (e.NewItems[i] as BindableObject).BindingContext);
221
_collection
.RemoveAt(e.OldStartingIndex);
225
var collection = (ObservableCollection<object>)
_collection
;
243
var collection = (ObservableCollection<object>)
_collection
;