During project development, you need to design a nice UI interface. Because the company uses the devexpress control, the Office effect provided by devexpress is used.
Case studies
Create a ribbonform Template
Delete clientpanel (if not deleted, the xtratabbedmdimanager effect cannot be displayed)
Drag a navbarcontrol file to set the dock attribute to left.
Add an xtratabbedmdimanager and set the mdiparent attribute to none.
Then you can start the preparation on the load event.
//拖动xtraTabbedManager到窗体中,在属性中将MdiParent设置成(无)... xtraTabbedMdiManager1.MdiParent = this; //设置控件的父表单.. XtraForm1 frm = new XtraForm1(); //定义一个form1窗体 frm.MdiParent = this; //设置新建窗体的父表单为当前活动窗口 frm.Show(); //以非模式窗口方式打开 xtraTabbedMdiManager1.SelectedPage = xtraTabbedMdiManager1.Pages[frm]; //使得标签的选择为当前新建的窗口 this.xtraTabbedMdiManager1.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InAllTabPagesAndTabControlHeader; //设置标签后面添加删除按钮 , 多个标签只需要设置一次..
Effect:
Devexpress-office-Effect