我有带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);
}