Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
Ribbon duplicate key error when changing caption
posted

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.

Parents
  • 71886
    Offline posted

    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.

    ContextualCaption.zip
Reply Children