/// <summary> /// 按用户指定的按钮标识,刷新该按钮 /// </summary> /// <param name="ControlID"></param> public void InvalidateControl(string ControlID) { XRibbon xRibbon = this.XRibbon; if (xRibbon != null && xRibbon.RibbonUI != null) { xRibbon.RibbonUI.InvalidateControl(ControlID); } }
/// <summary> /// 刷新整个Ribbon UI /// </summary> public void Invalidate() { XRibbon xRibbon = this.XRibbon; if (xRibbon != null && xRibbon.RibbonUI != null) { xRibbon.RibbonUI.Invalidate(); } }