gridsplitter - WPF GridSpliter Movment to both sides for sub-grids -
im creating grid hold 4 displayes.
i started grid divided 2 grids (top/bottom) gridsplitter. part worked fine - can change height of noth top , buttom grids. splited each of them 2 more grids - left , right, again seperated grid spliter.
these gridspliters can change size right left widht kept constant(the initial width)
how fix it?
heres xaml code:
<grid background="#ddddff"> <grid.rowdefinitions> <rowdefinition height="*"/> <rowdefinition height="5"/> <rowdefinition height="*"/> </grid.rowdefinitions> <gridsplitter grid.row="1" height="5" horizontalalignment="stretch"></gridsplitter> <grid x:name="topdisplaysgrid" grid.row="0"> <grid.columndefinitions> <columndefinition width="*"/> <columndefinition width="5"/> <columndefinition width="*"/> </grid.columndefinitions> <gridsplitter grid.column="1" width="5" verticalalignment="stretch"></gridsplitter> <grid x:name="topleftdisplaygrid" grid.column="0"></grid> <grid x:name="toprightdisplaygrid" grid.column="2"></grid> </grid> <grid x:name="bottomdisplaysgrid" grid.row="2"> <grid.columndefinitions> <columndefinition width="*"/> <columndefinition width="5"/> <columndefinition width="*"/> </grid.columndefinitions> <gridsplitter grid.column="1" width="5" verticalalignment="stretch"></gridsplitter> <grid x:name="bottomleftdisplaygrid" grid.column="0"></grid> <grid x:name="bottomrightdisplaygrid" grid.column="2"></grid> </grid> </grid>
change 2 inner gridsplitters' resize behavior: resizebehavior="previousandnext".
help, think. check out: gridresizebehavior
Comments
Post a Comment