blob: be9055af20da47b3bb442de550e2a47a7fa757e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Collections;
namespace Xamarin.Forms
{
public interface ITemplatedItemsList<TItem> : IReadOnlyList<TItem>, INotifyCollectionChanged where TItem : BindableObject
{
event NotifyCollectionChangedEventHandler GroupedCollectionChanged;
event PropertyChangedEventHandler PropertyChanged;
object BindingContext { get; }
string Name { get; set; }
TItem HeaderContent { get; }
IEnumerable ItemsSource { get; }
IReadOnlyList<string> ShortNames { get; }
IListProxy ListProxy { get; }
int GetGlobalIndexForGroup(ITemplatedItemsList<TItem> group);
int GetGlobalIndexOfItem(object item);
ITemplatedItemsList<TItem> GetGroup(int index);
Tuple<int, int> GetGroupAndIndexOfItem(object item);
Tuple<int, int> GetGroupAndIndexOfItem(object group, object item);
int GetGroupIndexFromGlobal(int globalIndex, out int leftOver);
int IndexOf(TItem item);
TItem UpdateContent(TItem content, int index);
TItem UpdateHeader(TItem content, int groupIndex);
}
}
|