14 references to ItemsSource
Microsoft.Maui.Controls (14)
Picker\Picker.cs (13)
39
/// <summary>Bindable property for <see cref="
ItemsSource
"/>.</summary>
41
BindableProperty.Create(nameof(
ItemsSource
), typeof(IList), typeof(Picker), default(IList),
346
if (
ItemsSource
== null)
349
foreach (object item in
ItemsSource
)
384
if (
ItemsSource
!= null)
386
SetValue(SelectedIndexProperty,
ItemsSource
.IndexOf(selectedItem), SetterSpecificity.FromHandler);
402
if (
ItemsSource
!= null)
404
var item = index <
ItemsSource
.Count ?
ItemsSource
[index] : null;
442
int IItemDelegate<string>.GetCount() => Items?.Count ??
ItemsSource
?.Count ?? 0;
450
if (index <
ItemsSource
?.Count)
451
return GetDisplayMember(
ItemsSource
[index]);
468
return $"Items = {
ItemsSource
?.Count ?? 0}, SelectedItem = {SelectedItem}, {base.GetDebuggerDisplay()}";
Picker\Picker.Mapper.cs (1)
18
PickerHandler.Mapper.ReplaceMapping<Picker, IPickerHandler>(nameof(Picker.
ItemsSource
), MapItemsSource);