Set a Maximum Width/Height for LayoutAnchorablePane? [v2]

Sep 18, 2013 at 10:53 AM
Edited Sep 18, 2013 at 2:46 PM
I'm wondering if it would be possible to limit the width/height of a LayoutAnchorablePane when placed in a LayoutAnchorablePaneGroup?

For example, I would like to have 2 panes in a vertical group, one at a fixed height and the other filling out the remaining space.

I can't see what I can override in LayoutAnchorablePane or LayoutAnchorablePaneGroup to help with this. :(

BTW: If you set DockHeight="50", it shows up in the designer with the panel's height at 50... but the moment you run the application it gets reset back to "star" and all panels are evenly distributed. Possible bug?

Cheers
Sep 18, 2013 at 3:07 PM
Culprit is OnFixChildrenDockLengths in the class LayoutAnchorablePaneGroupControl

Basically resets all DockHeight To Star if the orientation is vertical. An option on each control as to whether you want this behavior would be useful.