public void NewLine() { var row = new VIMFormRow(this, _defaultConstraint); Children.Add(row); _rows.Add(row); _editingFieldIndex++; }
public VIMFormControl(IVIMActionController container) { var row = new VIMFormRow(this, _defaultConstraint); _rows = new List<VIMFormRow> {row}; Children.Add(row); Orientation = Orientation.Vertical; VerticalAlignment = VerticalAlignment.Top; container.EnterInsertMode(CharacterInsertMode.Before); }
public void Navigate(List<KeyValuePair<string, string>> obj) { Children.Clear(); obj .Select(row => { var vimRow = new VIMFormRow(this, _defaultConstraint) { FieldName = {Text = row.Key}, Value = {Text = row.Value} }; return vimRow; }) .Do(vimRow => Children.Add(vimRow)); }