protected override object SetItems(object editValue, object[] value)
{
// Cast the context into the expected control type
KryptonRibbon ribbon = (KryptonRibbon)Context.Instance;
// Suspend changes until collection has been updated
if (ribbon != null)
ribbon.SuspendLayout();
// Let base class update the collection
object ret = base.SetItems(editValue, value);
if (ribbon != null)
ribbon.ResumeLayout(true);
return ret;
}