Class SearchListSource
- Namespace
- EchoHub.Client.UI.ListSources
- Assembly
- EchoHub.Client.dll
List data source for the search dialog with filtering and colored rendering.
public class SearchListSource : IListDataSource, IDisposable
- Inheritance
-
SearchListSource
- Implements
-
IListDataSource
- Inherited Members
Constructors
SearchListSource(List<SearchResult>)
List data source for the search dialog with filtering and colored rendering.
public SearchListSource(List<SearchResult> items)
Parameters
itemsList<SearchResult>
Properties
Count
public int Count { get; }
Property Value
MaxItemLength
public int MaxItemLength { get; }
Property Value
SuspendCollectionChangedEvent
public bool SuspendCollectionChangedEvent { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
Filter(string)
public void Filter(string query)
Parameters
querystring
GetItem(int)
public SearchResult? GetItem(int index)
Parameters
indexint
Returns
IsMarked(int)
public bool IsMarked(int item)
Parameters
itemint
Returns
Render(ListView, bool, int, int, int, int, int)
public void Render(ListView listView, bool selected, int item, int col, int row, int width, int viewportX = 0)
Parameters
SetMark(int, bool)
public void SetMark(int item, bool value)
Parameters
ToList()
public IList ToList()
Returns
- IList
Events
CollectionChanged
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
- NotifyCollectionChangedEventHandler