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 will try. Thanks for your reply.
I have this in my Window-Closed Event:private void XamRibbonWindow_Closed(object sender, EventArgs e)
The loading statement is in the Loaded-Event.
Where did you add the
FileStream fs = new FileStream("filename.xml", FileMode.Create, FileAccess.Write);dataPresenter .SaveCustomizations(fs);
Hi Garwain,The solution you suggested works perfectly.
Thanks for your help!
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:
Regards,Gawain