Setting Docking panel width


Author
Message
Ian Hammond
Ian Hammond
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
Posts: 11, Visits: 1
Thanks for that, now sorted.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Ian,

You can do that using NDockingFrameworkState class.

In order to save and load panels correctly you need to set their Key and Text properties with unique values.

After the initialization of NDockingFrameworkState member you need to set its Manager property to the manager that you want to persist. Also you can specify the persistency format that you want to use by setting PersistencyFormat property of the docking framework state to the desired value.

Then all you need is to call one of the Save overloads when the form is closing and respectively Load when the form is loading.

You can also check the following topic in our online documentation for more info:

http://help.nevron.com/dotnetvision/UsersGuide_DockingPanels_Layout_Presistency.html



Best Regards,
Nevron Support Team


Ian Hammond
Ian Hammond
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
Posts: 11, Visits: 1

My app displays a number of docking panels which the user can change either the width or the height. I would like to save the size information when the app closes and restore the panels to the saved size on startup. I can't seem to find which parameters I should be saving or which size parameters I should be writing to.

Can anyone advise,

many thanks

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search