Interface IListViewItem<TData, TIndex>
Implement to define view logic for a list view item
Inherited Members
Namespace: Unity.ListViewFramework
Syntax
public interface IListViewItem<TData, TIndex> : IListViewItem where TData : IListViewItemData<TIndex>
Type Parameters
Name | Description |
---|---|
TData | The type of data backing each list item |
TIndex | The type which is used as a unique index to map data to list items |
Properties
data
The data for this item
Declaration
TData data { get; set; }
Property Value
Type | Description |
---|---|
TData |
Methods
Setup(TData, Boolean)
Called once when this list item becomes visible
Declaration
void Setup(TData datum, bool firstTime)
Parameters
Type | Name | Description |
---|---|---|
TData | datum | The data backing this list item |
Boolean | firstTime | Whether this is the first time this item is being set up; This will be false when the item is re-used from the template pool |