Example #1
0
        private void SetColumns(string columns)
        {
            var items = GridUtil.ParseAll(columns);

            ColumnDefinitions.Clear();
            foreach (var item in items)
            {
                ColumnDefinitions.Add(new ColumnDefinition {
                    Width = item
                });
            }
        }
Example #2
0
        private void SetRows(string rows)
        {
            var items = GridUtil.ParseAll(rows);

            RowDefinitions.Clear();
            foreach (var item in items)
            {
                RowDefinitions.Add(new RowDefinition {
                    Height = item
                });
            }
        }