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.
Could you pelase verify that you are closing the Window, not stop Debbuging mode, because in the Closing event handler of the Window the method that creates the xml fle is called.
not in debug mode. Xml is generating but problem is if i had 3 buttons in quick access toolbar.if i remove one button and close by application.if i open again no buttons are available in QAT (2 buttons should available right?).All buttons are disappearing.
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.
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.
Thanks a lot...its working fine.....