I have made my xamoutlookbar persistent by writing the .IsVisible() properties of my outlookbarbuttons and the .NavigationAreaMaxGroups properties to an xml file and then setting the corresponding settings on load from the xml. this is working fine however i have two other issues.
1. How could i store the order of the outlookbar buttons, if the user reorders the buttons i cant store that. I guess i need to know how to rearrange the buttons programmatically.
2. when i start my application the outlookbar buttons that i had hidden during the previous use of the program are infact hidden. the problem is that if i open the navigation pane options, and click reset it only checks the buttons that i currently am showing. I need reset to reset to show all. I guess knowing how to get to the property that the the checkbox for buttons on this screen sets would help
this does work, unfortunately it is clearing the formattingof my outlookbar. The icons associated with the groups no longer exist when i reload
Hello Pete,
I have been looking into your post and modified the sample you are using in order to achieve the functionality you need. You can store the order and all the settings of the outlookbar by using the PersistenceManager. I added two buttons below the outlookbar for saving and loading these settings using the approach.
Then I used the default style of the NavigationPaneOptionsControl which is located in C:\Program Files (x86)\Infragistics\NetAdvantage <version here>\WPF\DefaultStyles\OutlookBar\OutlookBarBase.xaml. I removed the defined command of the btnReset and handled its click event and the loaded event of the PART_ListBox. These events are used to get the checkbox items when the btnReset is clicked and set their IsChecked property to true.
Please feel free to let me know if you have any questions regarding this.
Any Ideas?
I have attached a project demonstrating my issues