Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3627
What are the proper containers to use when grouping grids?
posted

This is probably more of a general WPF question, but I know as soon as I mention a xam grid, they'll simply refer me back here.

 I'm struggling, trying to igure out the right combination of containers to use when groupping two xamgrids. I had this working in a simple grid, but now I'm trying to use expanders. Not to get side tracked, but to head of responses of "don't use an expander", I'm doing this for UI consistency. The expander in this case has a style that prevents collapse, while the group looks similar to other expanders on the page that can collapse.

Anyway,  what I'm running into xamgrids that run off the bottom of the expander control (the grid opens and the items dissapear from the bottom, with no scroll bar). I can't figure out how to tell the xamgrids to consume only as much vertical space as is available on the screen. It seems that the expander is virtual, even though it doesn't scroll.

A basic version of what I need is:

 <expander>

    <grid>

         [row defs ... 2 rows]

         <xamgrid grid.row="0"></xamgrid>

         <splitter grid.row="0"></splitter>

         <xamgrid grid.row="1"></xamgrid>

</expander>

This, of course, doesn't work correctly for me, as described above.