Interface
ILinkedSelection
ConsoleMonster.Interactive
A control whose selection is a position in a list (a row, a point, a choice) and can be shared through app state. Controls with the same ILinkedSelection.LinkKey are linked without referring to each other: when the user moves one, the app writes its ILinkedSelection.LinkIndex to that state key, and every control with the key that can show that position follows it, as it does when a callback writes the key; a position a control cannot show leaves it as it is. DataGrid, ChartView, Select and MultiSelect take part; implement it on a custom InputControl to link it the same way.
Methods
public abstract void FollowLink(int? index) #Follows a position another control or a callback selected; a position this control cannot show is ignored.
Parameters
- index int?
- The position, or null when the shared value is not a number.