[]
        
(Showing Draft Content)

C1.iOS.DataCollection.C1CollectionViewSource-1

C1CollectionViewSource<T> Class

This class is the bridge between UIKit.UICollectionView and C1DataCollection<T>. Using this class you'll get built-in sort, filter, grouping, refresh and load-on-demand features.

Inheritance
C1CollectionViewSource<T>
Namespace: C1.iOS.DataCollection
Assembly: C1.iOS.DataCollection.dll
Syntax
public class C1CollectionViewSource<T> : UICollectionViewSource where T : class
Type Parameters
Name Description
T
Remarks

Inherit this class and implement GetItemCell to set the cell appearance as you wish.

Constructors

Name Description
C1CollectionViewSource(UICollectionView)

Initializes a new instance of the C1CollectionViewSource<T> class.

Properties

Name Description
CollectionView

Gets the table view used to display the items.

CollectionViewLayout

Gets or sets the collection view layout.

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 data collection which provides the data items.

RefreshControl

Gets the refresh control used by the user to refresh the list.

Methods

Name Description
GetCell(UICollectionView, NSIndexPath)

Called by the table view to get populate the row at indexPath with a cell view.

GetGroupCell(UICollectionView, NSIndexPath, IDataCollectionGroup<object, object>)

Gets the visual element representing a group(header) cell.

GetItem(NSIndexPath)

Gets an item from the UIKit.UITableView Foundation.NSIndexPath.

GetItemCell(UICollectionView, NSIndexPath, T)

Gets the visual element representing an item.

GetItemsCount(UICollectionView, nint)

Called by the collection view to find out how many items are to be rendered in the section specified by section.

GetViewForSupplementaryElement(UICollectionView, NSString, NSIndexPath)
NumberOfSections(UICollectionView)

Returns the number of sections that are required to display the data.

Scrolled(UIScrollView)