//private Table GetConfigurationTable() //{ // var table = new Table(); // table.Columns.Add(new TableColumn { Width = new GridLength(100) }); // table.Columns.Add(new TableColumn { Width = new GridLength(100) }); // var tableRowGroup = new TableRowGroup(); // tableRowGroup.Rows.Add(GetTableRow(ConfigGridHeaderCells, TableCellHeaderStringConvertor)); // tableRowGroup.Rows.Add(GetTableRow(ConfigGridTestDurationCells, TableCellStringConvertor)); // tableRowGroup.Rows.Add(GetTableRow(ConfigGridMemorizeTimeCells, TableCellStringConvertor)); // table.RowGroups.Add(tableRowGroup); // return table; //} private Block GetConfigurationGrid() { var grid = new Grid(); grid.AddCollumns(2); grid.AddRow(GetGridRow(ConfigGridHeaderCells, GridCellHeaderStringConvertor, 0)); grid.AddRow(GetGridRow(ConfigGridTestDurationCells, GridCellStringConvertor, 1)); grid.AddRow(GetGridRow(ConfigGridMemorizeTimeCells, GridCellStringConvertor, 2)); return(new BlockUIContainer(grid)); }
private Block GetModelsInformationGrid() { var grid = new Grid(); grid.AddCollumns(5); grid.AddRow(GetGridRow(ModelInfoGridHeaderCells, GridCellHeaderStringConvertor, 0)); int index = 1; foreach (var model in _models) { grid.AddRow(GetGridRow(GetModelInfoGridCells(model), GridCellStringConvertor, index++)); } return(new BlockUIContainer(grid) { Margin = new Thickness(0, 10, 0, 0) }); }