internal GridTrack(IGridTrackCollection owner, int ordinal, GridLengthParser.Result result) { _owner = owner; _ordinal = ordinal; _length = result.Length; MinLength = result.MinLength; MaxLength = result.MaxLength; }
private static double CoerceViewport(IGridTrackCollection gridTracks, double maxExtent, double frozenHeadLength, double frozenTailLength) { if (gridTracks.SizeToContent) { return(maxExtent); } var result = gridTracks.AvailableLength; var frozenLength = frozenHeadLength + frozenTailLength; return(Math.Max(frozenLength, result)); }
internal GridColumn(IGridTrackCollection owner, int ordinal, GridLengthParser.Result result) : base(owner, ordinal, result) { }