ComponentFactory.Quicksilver.Layout.GridLayout.PreTarget C# (CSharp) Method

PreTarget() private method

private PreTarget ( Size availableSize ) : void
availableSize System.Windows.Size
return void
        private void PreTarget(Size availableSize)
        {
            // Need to allocate space to Star columns
            if (_columnStars > 0.0)
                PreTargetStarDefinitions(availableSize.Width, _proxyColumns, _columnStars);

            // Need to allocate space to Star rows
            if (_rowStars > 0.0)
                PreTargetStarDefinitions(availableSize.Height, _proxyRows, _rowStars);
            
            // Need to recalculate the offsets for each column
            CalculateOffsetsAndTotals();
        }