Hi,
I would like to save the field chooser settings in a xml file and be able to load it again. How can I do this?
Thanks,
Gawain
I figured it out by myself: LoadCustomization and SaveCustomization helps!
Hi, Gawain can You give a sample, how you made the saving fields with fieldchooser, because I not getting any solution for that.
for loading a Settings of a XamDataPresenter use something like this:
using (FileStream fs = new FileStream("filename.xml", FileMode.Open, FileAccess.Read)){ _dataPresenter .LoadCustomizations(fs);}
And for saving the settings:
FileStream fs = new FileStream("filename.xml", FileMode.Create, FileAccess.Write);dataPresenter .SaveCustomizations(fs);
Regards,Gawain
Where did you add the
I have this in my Window-Closed Event:private void XamRibbonWindow_Closed(object sender, EventArgs e)
The loading statement is in the Loaded-Event.
I will try. Thanks for your reply.