// -----------------------------------------------------------------------
//
// Copyright 2015 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Controls
{
using System.Linq;
using Perspex.Collections;
using Perspex.Controls.Parsers;
///
/// A collection of s.
///
public class ColumnDefinitions : PerspexList
{
///
/// Initializes a new instance of the class.
///
public ColumnDefinitions()
{
}
///
/// Initializes a new instance of the class.
///
/// A string representation of the column definitions.
public ColumnDefinitions(string s)
{
this.AddRange(GridLengthsParser.Parse(s).Select(x => new ColumnDefinition(x)));
}
}
}