Exemple #1
0
 internal GridTrack(IGridTrackCollection owner, int ordinal, GridLengthParser.Result result)
 {
     _owner    = owner;
     _ordinal  = ordinal;
     _length   = result.Length;
     MinLength = result.MinLength;
     MaxLength = result.MaxLength;
 }
Exemple #2
0
        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));
        }
Exemple #3
0
 internal GridColumn(IGridTrackCollection owner, int ordinal, GridLengthParser.Result result)
     : base(owner, ordinal, result)
 {
 }