c# - XtraTabbedMdiManager Layout (Tile Vertical, Tile Horizontal. Tile Cascade) -
i have ribbon form 3 button.. want change tabbed child form become vertical, horizontal, or cascade... there how ?
if using frmmain property
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); }
the question is, how change layout when press btnvertical change layout
to make layoutmdi
method work, remove xtratabbedmdimanager form or nullify xtratabbedmdimanager.mdiparent property because mdilayout mode not applicable xtratabbedmdimanager's tabs:
void btnvertical_itemclick(object sender, devexpress.xtrabars.itemclickeventargs e) { xtratabbedmdimanager1.mdiparent = null; // turn off tabs layoutmdi(mdilayout.tilevertical); }
as alternative solution, can try documentmanager component it's native mdi view.
Comments
Post a Comment