[]
This class is the bridge between UIKit.UITableView and C1DataCollection<T>. Using this class you'll get built-in sort, filter, grouping, refresh and load-on-demand features.
public class C1TableViewSource<T> : UITableViewSource where T : class
| Name | Description |
|---|---|
| T |
Inherit this class and implement GetItemCell and GetGroupTitle to set the cell appeareance as you wish.
| Name | Description |
|---|---|
| C1TableViewSource(UITableView) | Initializes a new instance of the C1TableViewSource<T> class. |
| Name | Description |
|---|---|
| DataCollection | Gets the data collection which provides the data items. |
| EmptyMessageLabel | Gets the label displayed when there are no items. |
| ItemsSource | Gets or sets the items source which provides the data items. |
| RefreshControl | Gets the refresh control used by the user to refresh the list. |
| TableView | Gets the table view used to display the items. |
| Name | Description |
|---|---|
| Dispose(bool) | Releases unmanaged and - optionally - managed resources. |
| GetCell(UITableView, NSIndexPath) | Called by the table view to get populate the row at indexPath with a cell view. |
| GetGroupTitle(UITableView, IDataCollectionGroup<object, object>) | Gets the title of a group. |
| GetItem(NSIndexPath) | Gets an item from the UIKit.UITableView Foundation.NSIndexPath. |
| GetItemCell(UITableView, NSIndexPath, T) | Gets the visual element representing an item. |
| NumberOfSections(UITableView) | Returns the number of sections that are required to display the data. |
| RowsInSection(UITableView, nint) | Called by the table view to find out how many rows are to be rendered in the section specified by section. |
| TitleForHeader(UITableView, nint) | Called to populate the header for the specified section. |