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. Image for the cookie policy date

MainFrameBarManager.SaveBarState

Hi, It seems that the MainFrameBarManager.SaveBarState method does not save custom added toolbars to the AppState. Is this correct ? Thanks

1 Reply

AD Administrator Syncfusion Team February 3, 2005 04:41 PM UTC

Hi Krijn, Saving the bar customization is handled by LoadBarCustomization and SaveBarCustomization. However, those methods are protected so you''ll need to extend MainFrameBarManager to access them. The following code snippet demonstrates this: public class CustomMainFrameBarManager : MainFrameBarManager { public CustomMainFrameBarManager () : base() { } public CustomMainFrameBarManager(Form f): base(f) { } public CustomMainFrameBarManager(IContainer c,Form f): base(c, f) { } public void LoadBarCustomization (AppStateSerializer serializer) { base.LoadCustomizationInfo(serializer); } public void SaveBarCustomization(AppStateSerializer serializer) { base.SaveCustomizationInfo(serializer); } } Regards, Gregory Austin Syncfusion, Inc.

Loader.
Up arrow icon