Hello,
I have an ExplorerBar with 3 Groups. The ones of the top and on the bottom should have fixed size. The Group on the middle should resize itself to occupy all remaining space if the size of the parent window changes or the other groups expands/collapses.
Is there any 'Fill' or 'Autosize' property?
Could you please let me know what Style of the component you are using and how exactly you are expecting this to works? Have you seen this before and could you point me to the existing software which works on similar way ?
I am waiting for your feedback.
Hi Hristo,
I’m using the ExplorerBar Style of the control.I’m expecting this to work like the Control.Dock.Fill or TableLayoutPanel.Column.Autosize settings.I think by other software I have never seen that behaviour combined with expandable elements. (although Control.Dock?)
I would expect following behaviour:
The UltraExplorerBar should have a AutoSizeGroup property.If that property is null or the associated Group is closed, the UltraExplorerBar’s behaviour should be like it is now.If that property is one of the Group of the ExplorerBar and the Group is expanded, the behaviour should be as follow:
1.) If you make the parent window greater or you collapse a Group:You should never show a free background area below the last Group, you should make the ContainerHeight of the AutoSizeGroup bigger instead.
2.) If you make the parent window smaller or you expand a Group:You should never show a ScrollBar until the ContainerHeight of the AutoSizeGroup is greater than 0, you should make it smaller instead.
I think the key to the solution is in the Paint Method of the ScrollBar, you are calculating there already all the informations, what we need.
Principally the effect must be the same as you would dock all the Groups above the AutoSizeGroup to the top, and all the Groups below it to the bottom.