// -----------------------------------------------------------------------
//
// 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 RowDefinitions : PerspexList
{
///
/// Initializes a new instance of the class.
///
public RowDefinitions()
{
}
///
/// Initializes a new instance of the class.
///
/// A string representation of the row definitions.
public RowDefinitions(string s)
{
this.AddRange(GridLengthsParser.Parse(s).Select(x => new RowDefinition(x)));
}
}
}