diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs index 5c4312f51b..63e74d62b1 100644 --- a/src/Avalonia.Controls/Grid.cs +++ b/src/Avalonia.Controls/Grid.cs @@ -857,15 +857,48 @@ namespace Avalonia.Controls } } + /// + /// Stores the layout values of of of . + /// private struct Segment { + /// + /// Gets or sets the base size of this segment. + /// The value is from the user's code or from the stored measuring values. + /// public double OriginalSize; - public double Max; - public double Min; + + /// + /// Gets the maximum size of this segment. + /// The value is from the user's code. + /// + public readonly double Max; + + /// + /// Gets the minimum size of this segment. + /// The value is from the user's code. + /// + public readonly double Min; + + /// + /// Gets or sets the row/column partial desired size of the . + /// public double DesiredSize; + + /// + /// Gets or sets the row/column offered size that will be used to measure the children. + /// public double OfferedSize; + + /// + /// Gets or sets the star unit size if the is . + /// public double Stars; - public GridUnitType Type; + + /// + /// Gets the segment size unit type. + /// + public readonly GridUnitType Type; public Segment(double offeredSize, double min, double max, GridUnitType type) {