23 references to Items
Microsoft.Maui.Controls (23)
Picker\Picker.cs (23)
70 ((INotifyCollectionChanged)Items).CollectionChanged += OnItemsCollectionChanged; 238 return picker.Items == null ? -1 : ((int)value).Clamp(-1, picker.Items.Count - 1); 250 if (((LockableObservableListWrapper)Items).IsLocked) 276 ((LockableObservableListWrapper)Items).IsLocked = true; 282 ((LockableObservableListWrapper)Items).IsLocked = false; 283 ((LockableObservableListWrapper)Items).InternalClear(); 307 int insertIndex = e.NewStartingIndex < 0 ? Items.Count : e.NewStartingIndex; 310 ((LockableObservableListWrapper)Items).InternalInsert(index++, GetDisplayMember(newItem)); 321 if (e.OldStartingIndex < Items.Count) 330 removeStart = Items.Count - e.OldItems.Count; 331 index = Items.Count - 1; 335 ((LockableObservableListWrapper)Items).InternalRemoveAt(index--); 346 ((LockableObservableListWrapper)Items).InternalClear(); 348 ((LockableObservableListWrapper)Items).InternalAdd(GetDisplayMember(item)); 370 var newIndex = SelectedIndex.Clamp(-1, Items.Count - 1); 387 SetValue(SelectedIndexProperty, Items.IndexOf(selectedItem), SetterSpecificity.FromHandler); 407 SetValue(SelectedItemProperty, Items[index], SetterSpecificity.FromHandler); 432 IList<string> IPicker.Items => Items; 440 int IItemDelegate<string>.GetCount() => Items?.Count ?? ItemsSource?.Count ?? 0; 446 if (index < Items?.Count) 455 if (index < Items?.Count) 457 var item = Items[index];