Hello,
How can i persist/apply the XamOutlookBar settings? in particular, i want to persist the index of each group (if end user decides to change their order), the visible/collapsed groups and what groups belongs to navigation / overflow area of the control.
Using Persistence Manager does not work as expected, using IProvideCustomObjectPersistence interface and saving the above info, i do not have any method to set index/overflow and navigation items through code.
Thank you in advance,
Michael
Hello redbyron,
I am attaching a sample that is showing you how you could achive storing specific XamOutlookBar settingis in a file inside IsolatedStorage! If you don't want to use IsolatedStorage, you could just use MemoryStream, but it will work only for the current run of the application! If there is other questions, please feel free to share them!
Regards,
Nikola.
Hello Nikola,
i am attaching a modified version of the example...
My issues are the following...
1) The size of the stream
2) It persists the datacontext
3) It does not handle correctly the styles and the data templates
4) Also i bind the header of each group, in a multilingual scenario it will load the persisted header instead of the selected language's caption..
Please run my sample and check,
press save and it will message box the default size...
press load data and press save again and you will see the difference (it saves the two list's in the VM)
also rerun the app, press save and then load.. The icontemplate will be lost....
regards,