// Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Linq;
using Perspex.Collections;
namespace Perspex.Controls
{
///
/// 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)
{
AddRange(GridLength.ParseLengths(s).Select(x => new ColumnDefinition(x)));
}
}
}