// 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;
using System.Collections.Specialized;
using System.Linq;
using Avalonia.Collections;
namespace Avalonia.Controls
{
///
/// A collection of s.
///
public class ColumnDefinitions : DefinitionList
{
///
/// Initializes a new instance of the class.
///
public ColumnDefinitions() : base ()
{
}
///
/// Initializes a new instance of the class.
///
/// A string representation of the column definitions.
public ColumnDefinitions(string s)
: this()
{
AddRange(GridLength.ParseLengths(s).Select(x => new ColumnDefinition(x)));
}
///
/// Parses a string representation of column definitions collection.
///
/// The column definitions string.
/// The .
public static ColumnDefinitions Parse(string s) => new ColumnDefinitions(s);
}
}