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 Reply Children
No Data