Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 刷新整个Ribbon UI
        /// </summary>
        public void Invalidate()
        {
            XRibbon xRibbon = this.XRibbon;

            if (xRibbon != null && xRibbon.RibbonUI != null)
            {
                xRibbon.RibbonUI.Invalidate();
            }
        }