ListItemActivatedEventArgs<T>
Namespace: Hex1b.Events
Assembly: Hex1b.dll
Event arguments for item-activation events (Enter, Space, or click).
csharp
public sealed class ListItemActivatedEventArgs<T> : WidgetEventArgs<ListWidget<T>, ListNode<T>>Inheritance
Object → WidgetEventArgs → WidgetEventArgs<ListWidget<<T>>, ListNode<<T>>> → ListItemActivatedEventArgs<T>
Constructors
ListItemActivatedEventArgs(ListWidget<T>, ListNode<T>, InputBindingActionContext, int, T)
Parameters:
widget(ListWidget<<T>>):node(ListNode<<T>>):context(InputBindingActionContext):activatedIndex(Int32):activatedItem(<T>):
csharp
public ListItemActivatedEventArgs(ListWidget<T> widget, ListNode<T> node, InputBindingActionContext context, int activatedIndex, T activatedItem)Properties
ActivatedIndex
The index of the activated item.
Returns: Int32
csharp
public int ActivatedIndex { get; }ActivatedItem
The activated item.
Returns: <T>
csharp
public T ActivatedItem { get; }ActivatedText
Convenience accessor that returns rendered via , or an empty string when the item is null.
Returns: String
csharp
public string ActivatedText { get; }