public virtual bool OnDisplayInsertPicture(object commandObject, ref UIItemDisplayProperties display) { int flid; display.Enabled = CanInsertPictureOrMediaFile(commandObject, out flid); return true;//we handled this, no need to ask anyone else. }