Interface IListDataSource
Implement IListDataSource to provide custom rendering for a ListView.
public interface IListDataSource : IDisposable
- Inherited Members
Properties
- Count
Returns the number of elements to display
- Length
Returns the maximum length of elements to display
- SuspendCollectionChangedEvent
Allow suspending the CollectionChanged event from being invoked, if true, otherwise is false.
Methods
- IsMarked(int)
Should return whether the specified item is currently marked.
- Render(ListView, bool, int, int, int, int, int)
This method is invoked to render a specified item, the method should cover the entire provided width.
- SetMark(int, bool)
Flags the item as marked.
- ToList()
Return the source as IList.
Events
- CollectionChanged
Event to raise when an item is added, removed, or moved, or the entire list is refreshed.