Пример #1
0
        public void AddRibbon()
        {
            RibbonControl rc = RibbonControl();
            RibbonTab     rt = RibbonTab("自定义菜单", "1");
            RibbonPanel   rp = RibbonPanel("自定义块操作");
            RibbonButton  rb = RibbonButton("加载块", "加载专业块");

            rb.IsActive         = true;
            rb.ShowText         = true;
            rb.CommandParameter = "OutputMessage ";
            rb.CommandHandler   = new AdskCommandHandler();

            rp.Source.Items.Add(rb);
            rt.Panels.Add(rp);
            rc.Tabs.Add(rt);
            rc.UpdateLayout();
        }