Wpf nesting containers
Posted
by
dortzur
on Stack Overflow
See other posts from Stack Overflow
or by dortzur
Published on 2010-12-29T11:14:28Z
Indexed on
2010/12/29
11:54 UTC
Read the original article
Hit count: 538
On a window control, my main container is a grid.
My grid has 2 rows, one row definition is 50*, and the other is 250*.
Now i want to add a right sidebar, lets say with a StackPanel.
I would like to have a ListBox inside the StackPanel that aligns with the 50* grid row, so as the window height gets bigger, the ListBox size will also get bigger.
My question is whether i can achieve this behavior while the ListBox is inside the StackPanel (which is nested inside the grid) or must the ListBox be placed directly inside the grid?
© Stack Overflow or respective owner