Enabling/disabling buttons in the Ribbon

#1
Hi,

is it possible to enable/disable buttons in the Ribbon using code? We are adding custom buttons to the Ribbon by updating the Default.CUI. These buttons are simply shortcuts to commands. Depending on the selection we would like to enable/disable these buttons. I know how to reflect on selection change but can not figure out how to disable/enable a button

Kind regards

Geza Szabo