// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Globalization;
using System.Linq;
using Avalonia.Collections;
namespace Avalonia.Controls
{
///
/// A collection of s.
///
public class RowDefinitions : AvaloniaList
{
///
/// Initializes a new instance of the class.
///
public RowDefinitions()
{
ResetBehavior = ResetBehavior.Remove;
}
///
/// 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)));
}
}
}