Dear all,
a hopefully small issue. For reasons of consistency I am changing the captions of some ContextualGroupTabs and some Ribbon.Tabs at design time via the Custom Property Pages dialogue. Generally all I am doing is adding or removing one word, see below for an example:
- contextualTabGroup2.Caption = "Diff View Actions";
+ contextualTabGroup2.Caption = "Diff Actions";
However when I do this (even if it is only a single character difference) the ribbon throws a duplicate key error (specifically System.ArgumentException: An entry with the same key already exists) and the ribbon control can no longer be viewed at design time.
A diff of the designer file shows only the above line has been changed. And that it is the caption, not the key that has been altered. I've checked the and the key is not duplicated anywhere. Why is this error being thrown?
Thanks.
Hello B_D,
I tried to reproduce this issue and was not able to. You could review my sample and try to change the caption of a 'ContextualTabGroup'. If my sample does not help you, please try to attach a small project of your own reproducing this issue, I will be happy to take a look at it.
Please do not hesitate to contact us if you need any additional assistance.
Hello,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hi Boris, sorry for the delay in replying, but my work has slightly changed focus and I can live with the issue just now.
However, the issue is still there, along with another thing I noticed, which is I get the same error when trying to add an existing ribbon to an existing contextual group. I;ve no idea why either should happen.
I am trying to trim my application down so that I can send you something that shows the issue but it is proving more difficult than I originally thought.
One thing I should add (I discovered this after my original post) the error does not stop the application running, it runs and the ribbons behave as expected. It's just a design time issue. Once the issue arises the ribbon area of the main form becomes inaccessible (replaced with the error message in a large font) until I revert my changes, which makes future work on it rather awkward.
Please attach your sample when you succeed in reproducing it. I have tried your scenario with many different approaches several times without any luck, so I will be happy to take a look at such sample.
Hi Boris,
I've managed to trim down my application quite a bit and still display the chaning the caption problem I'm having. However, as this is my works code, and although extremely stripped down I'd rather not post it on an open forum. Do you have a private email address I could send it to?
The adding a ribbon to a context group error I could try and make an example for you, but I suspect the underlying issue, where ever it lies (which includes me using it all wrong), will be the same.
Regards,
I have created the following case for you: 'CAS-85780-0YTXR7'. So you could provide the sample there, I will update you through this case.
www.Infragistics.com => My IG = > My Support Activity.
Please do not hesitate to ask if something comes up.
Thanks Boris.
Quick question... how do I access that case?