public static Type ToCellType(this CellBodyType cellBodyType) { switch (cellBodyType) { case CellBodyType.Button: return(typeof(ButtonCell)); case CellBodyType.CheckBox: return(typeof(CheckBoxCell)); case CellBodyType.Default: default: return(typeof(CellBody)); } }
public ColumnHeaderViewModel(string name, CellBodyType defaultCellBodyType = CellBodyType.Default) { this.Name = name; this.DefaultCellBodyType = defaultCellBodyType; }