protected virtual void OnRowActivated() { if (Selection.FocusedIndex != -1) { RowActivated?.Invoke(this, new RowActivatedArgs <T> (Selection.FocusedIndex, model[Selection.FocusedIndex])); } }
public RunConfigurationsList() { listStore = new Xwt.ListStore(configCol, configNameCol, configIconCol); list = new Xwt.ListView(listStore); list.HeadersVisible = false; var imgCell = new ImageCellView { ImageField = configIconCol }; var textCell = new TextCellView { MarkupField = configNameCol }; list.Columns.Add(GettextCatalog.GetString("Name"), imgCell, textCell); Content = list; list.SelectionChanged += (s, o) => SelectionChanged?.Invoke(this, o); list.RowActivated += (s, o) => RowActivated?.Invoke(this, o); }