Interface IUIList
A component that represents a list of items.
Inherited Members
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public interface IUIList : IUIElementWithChildren, IUIElement
Properties
CanSelectItem
Gets whether items are selectable in the list. Default is true.
Declaration
bool CanSelectItem { get; }
Property Value
Type | Description |
---|---|
bool |
Items
Gets the list of items displayed in the list.
Declaration
ObservableCollection<IUIListItem> Items { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<IUIListItem> |
OnItemSelectedAction
Gets the action to run when the user selects an item in the list.
Declaration
Func<IUIListItem?, ValueTask>? OnItemSelectedAction { get; }
Property Value
Type | Description |
---|---|
Func<IUIListItem, ValueTask> |
SelectedItem
Gets the selected item in the list.
Declaration
IUIListItem? SelectedItem { get; }
Property Value
Type | Description |
---|---|
IUIListItem |
Events
CanSelectItemChanged
Raised when CanSelectItem is changed.
Declaration
event EventHandler? CanSelectItemChanged
Event Type
Type | Description |
---|---|
EventHandler |
SelectedItemChanged
Raised when SelectedItem is changed.
Declaration
event EventHandler? SelectedItemChanged
Event Type
Type | Description |
---|---|
EventHandler |