代码之家  ›  专栏  ›  技术社区  ›  Shiroze

XtratAbbedDiManager布局(垂直平铺、水平平铺、层叠平铺)

  •  0
  • Shiroze  · 技术社区  · 7 年前

    我有带3个按钮的ribbon表单。。

    ismdiContainer=true

    private void btn1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
    {
         form1 frm1 = new form1();
         frm1.MdiParent=this;
         frm1.Show();
    }
    
    private void btnVertical_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
    {
         LayoutMdi(MdiLayout.TileVertical);
    }
    
    private void btnHorizontal_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
    {
         LayoutMdi(MdiLayout.TileHorizontal);
    }
    
    private void btnCascade_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
    {
         LayoutMdi(MdiLayout.Cascade);
    }
    

    1 回复  |  直到 7 年前
        1
  •  0
  •   DmitryG    7 年前

    使 LayoutMdi 方法工作时,只需从表单中删除XtratAbbedDiManager或将 XtraTabbedMdiManager.MdiParent

    void btnVertical_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
    {
         xtraTabbedMdiManager1.MdiParent = null; // turn off tabs
         LayoutMdi(MdiLayout.TileVertical);
    }
    

    DocumentManager 它的组件 Native MDI View .