首页 > 学院 > 开发设计 > 正文

用代码控制DevExpress.XtraBars.Docking.DockPanel隐藏打开

2019-11-10 18:16:12
字体:
来源:转载
供稿:网友
public partial class Form1 : DevExPRess.XtraBars.Ribbon.RibbonForm    {        public Form1()        {            InitializeComponent();            this.dockPanel3.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;        }        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)        {            if (BtnWork.Caption == "显示")            {                BtnWork.Caption = "隐藏";                this.dockPanel3.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;            }            else if (BtnWork.Caption == "隐藏")            {                BtnWork.Caption = "显示";                this.dockPanel3.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;            }        }    }
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表