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