Profile Picture

Size of unhidden docking panel

Posted By Ian Hammond 13 Years Ago
Author
Message
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Ian,

Currently to set the size of the autohidden docking panel you need to set the value of NDockPanel.TabInfo.AutoHideSize.
However, if the user change the size of the autohidden panel by resizing it with the mouse this property will no longer apply.
In the next release or service pack we will add a new method called ApplyAutoHideSize which will apply the value of AutoHideSize to the actual size of the panel.
This way you will be able to change the size of the autohidden panel when the size of the panel when it is in a docked state is changed.
What you can do now is to attach to the NDockingPanel.ClientSizeChanged event and in the event handler you can set the TabInfoAutoHideSize to the SizeInfo.PrefferedSize.

private void nDockingPanel1_ClientSizeChanged(object sender, EventArgs e)
{
   nDockingPanel1.TabInfo.AutoHideSize = nDockingPanel1.SizeInfo.PrefferedSize;
}



Best Regards,
Nevron Support Team



Ian Hammond
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 11, Visits: 1

My app has vertical and horizontal docking panel. The panels are pinned and the user can change the size of the panels. If a panel in unpinned it is hidden, but, when the panel is un-hidden, it's size is different to the size of it pinned version. Is it possible to make sure that the unpinned/un-hidden version is displayed the same size as its pinned version.

Many thanks in advance.

 





Similar Topics


Reading This Topic