Hi Vijay,
Thanks for using Syncfusion products.
You can use BarManager's SaveBarState() and LoadBarState() method to save and load the toolbar states. If you want to persist the bar state into a local folder instead of Isolated Storage, first you have to set the MainFrameBarManager's AutoPersistCustomization and AutoLoadToolBarPositions property to false.
Here is the code snippet:
// Load the Saved Bar Information
private void Form1_Load(object sender, System.EventArgs e)
{
AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "..//..//StateInfo");
this.mainFrameBarManager1.LoadBarState(serializer);
}
// Save the Bar State Information
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "..//..//StateInfo");
this.mainFrameBarManager1.SaveBarState(serializer);
serializer.PersistNow();
}
SamplePlease refer to the attachments and let me know if you have any questions.
Regards,
S.Gopal.