private void SetColumns(string columns) { var items = GridUtil.ParseAll(columns); ColumnDefinitions.Clear(); foreach (var item in items) { ColumnDefinitions.Add(new ColumnDefinition { Width = item }); } }
private void SetRows(string rows) { var items = GridUtil.ParseAll(rows); RowDefinitions.Clear(); foreach (var item in items) { RowDefinitions.Add(new RowDefinition { Height = item }); } }