我有带 3 个按钮的功能区表单。我想将选项卡式子表单更改为垂直、水平或级联...有什么办法吗?
如果使用带有属性的 frmmain
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);
}
问题是,当我按 btnVertical 更改布局时如何更改布局