|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using System.Linq; |
|
|
|
using Avalonia.Collections; |
|
|
|
|
|
|
|
namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
@ -25,6 +24,11 @@ namespace Avalonia.Controls |
|
|
|
AddRange(GridLength.ParseLengths(s).Select(x => new RowDefinition(x))); |
|
|
|
} |
|
|
|
|
|
|
|
public override string ToString() |
|
|
|
{ |
|
|
|
return string.Join(",", this.Select(x => x.Height)); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Parses a string representation of row definitions collection.
|
|
|
|
/// </summary>
|
|
|
|
@ -32,4 +36,4 @@ namespace Avalonia.Controls |
|
|
|
/// <returns>The <see cref="RowDefinitions"/>.</returns>
|
|
|
|
public static RowDefinitions Parse(string s) => new RowDefinitions(s); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|