WPF 2 Grid - hide 1 and the other should expand -
i have following form.
these rows reside in grid , darker blue areas, section 1 , section 2, grids themselves.
how have grid 2 expand , fill row when grid 1 has been collapsed? attempted stackpanel moved grid 2 , left same size.
i'd when grid 1 has been collapsed:
any suggestions on how this?
thanks again!
you need make sure grid2 set fill available space. if have 1 grid contains grid1, grid2, , else, make sure rowheight row containing grid2 set * , else set auto:
<grid name="maingrid"> <grid.rowdefinitions> <rowdefinition height="auto"/> <rowdefinition height="*"/> <rowdefinition height="auto"/> </grid.rowdefinitions> <grid name="grid1" grid.row="0"/> <grid name="grid2" grid.row="1"/> <grid name="everythingbelow" grid.row="2"/> <grid>
Comments
Post a Comment