protected bool OnDisplayFormatApplyStyle(object commandObject, ref UIItemDisplayProperties display) { display.Enabled = m_delegate.CanApplyStyle; return true; }