Developer forum

Forum » Development » Controlling order of RibbonBarAddIn controls

Controlling order of RibbonBarAddIn controls

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a solution with two separate RibbonBarAddIns, each creating a button in the default container by calling CreateDefaultContainer. How do I control the order of the buttons? I would like to swap them but I can't find out how. I tried AddInOrder, changing the names of the class etc. but none of that seem to make any difference.

Thanks,

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

I've looked into this, and cannot find a secure way to do this. It seems rather random (related to the order in appdomain) - so it depends on in which order they are loaded.

I've added a request to sort them using the addorder attribute.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Perfect. It would be nice to have some day, but no rush.

Thanks,

Imar

 

You must be logged in to post in the forum