using System.Linq;
using Avalonia.Collections;
namespace Avalonia.Controls
{
///
/// A collection of s.
///
public class RowDefinitions : DefinitionList
{
///
/// Initializes a new instance of the class.
///
public RowDefinitions() : base()
{
}
///
/// Initializes a new instance of the class.
///
/// A string representation of the row definitions.
public RowDefinitions(string s)
: this()
{
AddRange(GridLength.ParseLengths(s).Select(x => new RowDefinition(x)));
}
///
/// Parses a string representation of row definitions collection.
///
/// The row definitions string.
/// The .
public static RowDefinitions Parse(string s) => new RowDefinitions(s);
}
}