Skip to content

ListFocusChangedEventArgs<T> ​

Namespace: Hex1b.Events

Assembly: Hex1b.dll

Event arguments for focus-change events (the keyboard-navigation cursor moved to a new row). Carries the typed item value rather than just its string representation.

csharp
public sealed class ListFocusChangedEventArgs<T> : WidgetEventArgs<ListWidget<T>, ListNode<T>>

Inheritance ​

Object → WidgetEventArgs → WidgetEventArgs<ListWidget<<T>>, ListNode<<T>>> → ListFocusChangedEventArgs<T>

Constructors ​

ListFocusChangedEventArgs(ListWidget<T>, ListNode<T>, InputBindingActionContext, int, T) ​

Parameters:

csharp
public ListFocusChangedEventArgs(ListWidget<T> widget, ListNode<T> node, InputBindingActionContext context, int focusedIndex, T focusedItem)

Properties ​

FocusedIndex ​

The index of the newly focused (cursor) item.

Returns: Int32

csharp
public int FocusedIndex { get; }

FocusedItem ​

The newly focused (cursor) item.

Returns: <T>

csharp
public T FocusedItem { get; }

FocusedText ​

Convenience accessor that returns rendered via , or an empty string when the item is null.

Returns: String

csharp
public string FocusedText { get; }

Released under the MIT License.