3 instantiations of TemplatedItemsList
Microsoft.Maui.Controls (3)
ItemsView.cs (1)
35 => TemplatedItems = new TemplatedItemsList<ItemsView<TVisual>, TVisual>(this, ItemsSourceProperty, ItemTemplateProperty);
MultiPage.cs (1)
36 _templatedItems = new TemplatedItemsList<MultiPage<T>, T>(this, ItemsSourceProperty, ItemTemplateProperty);
TemplatedItemsList.cs (1)
736 var groupProxy = new TemplatedItemsList<TView, TItem>(this, children, _itemsView, _itemTemplateProperty);
73 references to TemplatedItemsList
Microsoft.Maui.Controls (73)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (6)
409 var til = (TemplatedItemsList<ItemsView<Cell>, Cell>)sender; 1089 var templatedList = list.TemplatedItems.GetGroup(indexPath.Section); 1273 var templatedItems = list.TemplatedItems; 1314 var templatedItems = list.TemplatedItems; 1458 var templatedList = list.TemplatedItems;
Internals\CellExtensions.cs (6)
16 return TemplatedItemsList<TView, TItem>.GetIsGroupHeader(cell); 21 TemplatedItemsList<TView, TItem>.SetIsGroupHeader(cell, value); 26 var group = TemplatedItemsList<TView, TItem>.GetGroup(cell); 32 return TemplatedItemsList<TView, TItem>.GetIndex(cell); 37 return TemplatedItemsList<TView, TItem>.GetGroup(cell);
ItemsView.cs (1)
61 public TemplatedItemsList<ItemsView<TVisual>, TVisual> TemplatedItems { get; }
ListView\ListView.cs (3)
490 var group = TemplatedItems.GetGroup(groupIndex); 509 var group = TemplatedItems.GetGroup(groupIndex); 535 var group = TemplatedItems.GetGroup(groupIndex);
MultiPage.cs (1)
30 readonly TemplatedItemsList<MultiPage<T>, T> _templatedItems;
TemplatedItemsList.cs (56)
24 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(TemplatedItemsList<TView, TItem>), null); 27 public static readonly BindableProperty ShortNameProperty = BindableProperty.Create(nameof(ShortName), typeof(string), typeof(TemplatedItemsList<TView, TItem>), null); 29 static readonly BindablePropertyKey HeaderContentPropertyKey = BindableProperty.CreateReadOnly(nameof(HeaderContent), typeof(TItem), typeof(TemplatedItemsList<TView, TItem>), null); 31 internal static readonly BindablePropertyKey ListProxyPropertyKey = BindableProperty.CreateReadOnly(nameof(ListProxy), typeof(ListProxy), typeof(TemplatedItemsList<TView, TItem>), null, 34 static readonly BindableProperty GroupProperty = BindableProperty.Create("Group", typeof(TemplatedItemsList<TView, TItem>), typeof(TItem), null); 49 Cadenza.Collections.OrderedDictionary<object, TemplatedItemsList<TView, TItem>> _groupedItems; 76 internal TemplatedItemsList(TemplatedItemsList<TView, TItem> parent, IEnumerable itemSource, TView itemsView, BindableProperty itemTemplateProperty, int windowSize = int.MaxValue) 173 public TemplatedItemsList<TView, TItem> Parent { get; } 291 var til = item as TemplatedItemsList<TView, TItem>; 357 foreach (TemplatedItemsList<TView, TItem> group in _groupedItems.Values) 401 foreach (TemplatedItemsList<TView, TItem> children in _groupedItems.Values) 424 foreach (KeyValuePair<object, TemplatedItemsList<TView, TItem>> kvp in _groupedItems) 452 foreach (TemplatedItemsList<TView, TItem> children in _groupedItems.Values) 473 foreach (TemplatedItemsList<TView, TItem> children in _groupedItems.Values) 503 TemplatedItemsList<TView, TItem> group = _groupedItems[i]; 527 TemplatedItemsList<TView, TItem> group = GetGroup(item); 574 internal TemplatedItemsList<TView, TItem> GetGroup(int index) 587 internal static TemplatedItemsList<TView, TItem> GetGroup(TItem item) 592 return (TemplatedItemsList<TView, TItem>)item.GetValue(GroupProperty); 715 foreach (KeyValuePair<object, TemplatedItemsList<TView, TItem>> group in _groupedItems) 732 TemplatedItemsList<TView, TItem> InsertGrouped(object item, int index) 736 var groupProxy = new TemplatedItemsList<TView, TItem>(this, children, _itemsView, _itemTemplateProperty); 766 nameof(TemplatedItemsList<TView, TItem>.Name), 767 getter: static (TemplatedItemsList<TView, TItem> list) => list.Name, 794 _groupedItems = new Cadenza.Collections.OrderedDictionary<object, TemplatedItemsList<TView, TItem>>(); 796 List<TemplatedItemsList<TView, TItem>> newItems = null, oldItems = null; 807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 811 TemplatedItemsList<TView, TItem> converted = InsertGrouped(e.NewItems[i], e.NewStartingIndex + i); 827 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 831 TemplatedItemsList<TView, TItem> til = _groupedItems[index]; 847 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 854 TemplatedItemsList<TView, TItem> til = _groupedItems[index]; 890 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 906 TemplatedItemsList<TView, TItem> til = oldItems[i]; 975 var til = (TemplatedItemsList<TView, TItem>)bindable; 1134 foreach (TemplatedItemsList<TView, TItem> list in _groupedItems.Values) 1140 foreach (TemplatedItemsList<TView, TItem> list in _groupedItems.Values) 1147 static void SetGroup(TItem item, TemplatedItemsList<TView, TItem> group) 1228 readonly HashSet<TemplatedItemsList<TView, TItem>> _attachedItems = new HashSet<TemplatedItemsList<TView, TItem>>(); 1229 readonly TemplatedItemsList<TView, TItem> _itemsList; 1231 readonly Dictionary<TemplatedItemsList<TView, TItem>, string> _oldNames = new Dictionary<TemplatedItemsList<TView, TItem>, string>(); 1235 internal ShortNamesProxy(TemplatedItemsList<TView, TItem> itemsList) 1262 foreach (TemplatedItemsList<TView, TItem> item in _itemsList._groupedItems.Values) 1280 TemplatedItemsList<TView, TItem> list = _itemsList._groupedItems[index]; 1292 void AttachList(TemplatedItemsList<TView, TItem> list) 1305 newList.AddRange(list.Cast<TemplatedItemsList<TView, TItem>>().Select(tl => tl.ShortName)); 1314 var list = (TemplatedItemsList<TView, TItem>)sender; 1328 var list = (TemplatedItemsList<TView, TItem>)sender; 1365 foreach (TemplatedItemsList<TView, TItem> list in _attachedItems)