Description
The MinimumFractionRight
field in the SplitContainer
class specifies the minimum size that the right section of the split container can be, expressed as a fraction of the total container size. This value ranges from 0 to 1, where 0 means the right section can be minimized to nothing, and 1 means it can occupy the entire container. This field also indirectly controls the maximum size of the left section, as the sum of the left and right sections must equal the total container size.
Usage
To use the MinimumFractionRight
field, you can set it to a desired fractional value to ensure that the right section of the SplitContainer
does not shrink below a certain size. This is useful for maintaining a minimum visible area for the right panel, especially when the container is resizable or when the splitter is being dragged.
Example
// Example of setting the MinimumFractionRight field
SplitContainer splitContainer = new SplitContainer();
splitContainer.MinimumFractionRight = 0.3f; // Ensures the right section is at least 30% of the total width