WPF 2 Grid - hide 1 and the other should expand -


i have following form.

alt text

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:

alt text

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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -