Hello Jan,
NCommandContext.Properties.Font property by default is null, so I guess you didn't set it before.
You can check whether is null and if so, you can set it to the NCommandBarsManager.ParentControl.Font which should be the Form or other control that Command Bars Manager resides.
It may look similar to this:
int nCount = nCommandBarsManager1.Contexts.Count;
for (int i = 0; i < nCount; i++)
{
NCommandContext context = myCommandManager.Contexts[i];
context.Properties.Selectable = isEnabled;
Font contextFont = context.Properties.Font;
if (contextFont != null)
{
Font f = new Font(contextFont, FontStyle.Bold);
context.Properties.Font = f;
}
else
{
Font f = new Font(myCommandManager.ParentControl.Font, FontStyle.Bold);
}
}
I hope it helps.
Best Regards,
Nevron Support Team