Hi,
I'm not sure whether this question should asked here or in DockPanel-Thread.
I want to display a GridView (list of persons) and a Expander, containing a detailview to change selected persons attributes.
Initially the Expander is collapsed. Now, when the user expanded the detailview, the grid should be automatically resized - but not smaller than his MinHeight (but as high as possible without using scrollbars).
Around both (GridView and Expander) I added a Scrollviewer, to provide Scrollbars if the screen is to small to show both (GridView in MinHeight and Details)
At the moment I calculate the resulting size for GridView in Code behind.
But it looks a bit like a hack (and works not always well).
I'm wondering if there is a way to solve this problem through DockPanel or better usage of the Expander.
Any ideas?
Thanks
Berthold
attached I tried to explain my problem with a scribble
I'm not sure whether this question should asked here or in DockPanel-Thread.
I want to display a GridView (list of persons) and a Expander, containing a detailview to change selected persons attributes.
Initially the Expander is collapsed. Now, when the user expanded the detailview, the grid should be automatically resized - but not smaller than his MinHeight (but as high as possible without using scrollbars).
Around both (GridView and Expander) I added a Scrollviewer, to provide Scrollbars if the screen is to small to show both (GridView in MinHeight and Details)
At the moment I calculate the resulting size for GridView in Code behind.
But it looks a bit like a hack (and works not always well).
I'm wondering if there is a way to solve this problem through DockPanel or better usage of the Expander.
Any ideas?
Thanks
Berthold
attached I tried to explain my problem with a scribble