hi... in my project i am using xamribbon and i have placed around 30 buttons.When i right click on each button it is displaying context menu as "Add to Quick Access toolbar".Button will appear at the top the ribbon but if i close and open my project the button will disappear. How can i make persistence that i should remain at the top the ribbon.Plz help me in sending a sample application.
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically when the Window is closing I create a xml file where I save information about the items in the QAT (Type and Id) and on Initializing of the Window I retrieve that information and add items in the QAT. You should set the Id Property of each tool that you will add to the QAT, because this is part of the information stored in the xml file. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi thanks for replying.. it works fine but if i add two or more items to quick access tool bar and remove one and close and open all items are removed.persistance is not happening after removing one item. plz solve this.
Did you set each Button's Id Property?
yes.... Checking in your example only what u have sent.
Steps i have done...
1. add all controls to QAT.
2. close application,
3. open u will find all controls in QAT.
4. Remove check box from QAT and close Application.
5. Again open no controls in QAT.
I was able to reproduce your beahvior and I modified the sample, so now it works correctly.
Thanks a lot...its working fine.....
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.