src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Helper function to get widths without clearing current column widths
/// </summary>
/// <param name="controlWidth">The current width of the control.</param>
/// <returns>The total width required to display the headers.</returns>
Helper function to get widths without clearing current column widths
Helper function to get widths without clearing current column widths
private float CalculateNonFixedControlWidth(int controlWidth)
            {
                Debug.Assert(myVariableBounds != null); 
                var boundsCount = myVariableBounds.Length;
                var testWidth = controlWidth - myTotalFixedWidth;
                if (testWidth <= myVariableBounds[boundsCount - 1].FixedThreshold)
                {
                    return myTotalFixedWidth + myVariableBounds[boundsCount - 1].FixedThreshold;
                }
                return controlWidth;
            }
private float CalculateNonFixedControlWidth ( int controlWidth ) { Debug . Assert ( myVariableBounds != null ) ; var boundsCount = myVariableBounds . Length ; var testWidth = controlWidth - myTotalFixedWidth ; if ( testWidth <= myVariableBounds [ boundsCount - 1 ] . FixedThreshold ) { return myTotalFixedWidth + myVariableBounds [ boundsCount - 1 ] . FixedThreshold ; } return controlWidth ; }
Helper function to get widths without clearing current column widths
Helper function to get widths without clearing current column widths
// Don't call otherwise // A scrollbar is required once all of the variable items hit their // minimum values. The threshold for this is stored in the final item // Everything fits in the area provided.
The total width required to display the headers.
The total width required to display the headers .
controlWidth
int
The current width of the control.
The current width of the control .