Hi Dimitris,
For getEnabled I see this entry:
C#: bool GetEnabled(IRibbonControl control)
So you'd have:
// This is the callback handler (name and signature must match the getEnabled="btn_GetEnabled" in the customUI
XML)
public bool btn_GetEnabled(IRibbonControl control)
{
return _btnIsEnabled;
}
// This is internal bookkeeping
bool _btnIsEnabled;
internal void SetBtnEnabled(bool isEnabled)
{
_btnIsEnabled = isEnabled;
InvalidateHelpButton();
}
Of course you might factor and wrap this better if you'll be doing a lot of it. The VSTO wrapper classes are an example of a higher-level wrapper around this Ribbon API.
-Govert