We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AppStateSerializer, MainFrameBarManager & QuickCustomize

Thread ID:

Created:

Updated:

Platform:

Replies:

44279 May 18,2006 07:23 PM May 19,2006 03:15 PM Windows Forms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 18, 2006 07:23 PM

Is there a way to use AppStateSerializer with a MainFrameBarManager to save the user''s QuickCustomize settings (e.g. turn off/on a BarItem)? I have tried it and it only appears to save the Bar''s docking attributes.

J.Nagarajan [Syncfusion]
Replied On May 19, 2006 11:26 AM

Hi Don, The SaveBarState/LoadBarState methods persist the positional information of the menus/toolbars only. Hiding/showing or adding/removing BarItems/toolbars amounts to menu customization and the MainFrameBarManager''s protected methods - LoadCustomizationInfo/SaveCustomizationInfo handle this. You have to derive a custom mainframeBarManager and use these methods to persist customization. Set the following properties to false and then load the state from a serialized file. This way all the state persistance is done to the same xml file. this.mainFrameBarManager1.AutoLoadToolBarPositions = false; this.mainFrameBarManager1.AutoPersistCustomization = false; Please take a look at the attached sample and let me know if you have any questions. Thank You, J.Nagaraj QuickCustomization.zip

Administrator [Syncfusion]
Replied On May 19, 2006 03:15 PM

Thanks, that does the trick. I really appreciate how responsive you guys are to questions.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;