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
805
Id Problems
posted

First of all, you guys have done a great job with the Ribbon, I really like the style of it.

But I have some problems with using it.

When I clear the items of the Ribbon (XamWebRibbon.Tabs.Clear()) and want to readd a RibbonTab, which was previously in the collection of tabs, I'm getting an Exception like this:

Group with Id 'TabTitle1' already exists. Cannot add multiple group instances with the same Id.

It seems like that the Ribbon somehow saves the IDs of all Items, even after a Clear(), it can remember the IDs.

 

Second problem I have is that all the IDs must be unique in the Ribbon. Usually this make sense, but the ButtonTool has no Command or a Tag Property, so I have to save the name of a command in that Id Property to I know which command I have to execute on ButtonClick.

If I have 2 ButtonTools each in different Tabs referencing to the same command, than I get an Exception.

I'm not sure If I do something wrong or If this is an issue of the Ribbon.

 

Enrico

Parents Reply Children
No Data