I have a panel whos height can vary (it just sizes to its contents). It all works great when the panel is pinned, but as soon as I unpin it, the height becomes fixed, and no longer adapts to its contents.
How can I get the unpinned panel to re-measure, so it's expanded height will be correct?
Update: if the panel starts off as IsPinned="false" then it DOES correctly alter it's height according to content. However, as soon as I turn auto-hide off (at runtime), and then turn it back on again, the problem returns.
This is the same as my original experience, where IsPinned="true", and at runtime I turned auto-hide on.
It seems that doing auto-hide false -> true at run time causes the panel height to get fixed?
I've filed this as a bug, XDM3.
I've included a test case.
We'll review the issue. When you unpin the pane at runtime, the current size of the pane is used since that is the behavior that you see in VS. That being said, the behavior between setting it initially and subsequently seems inconsistent. The desired size (as measured with infinity) is only used to determine the size of the splitpane if an extent is not specified (i.e. it's not explicitly given a width/height) - once you resize the splitter for a root splitpane it will have and use an explicit size in which case the unpinned pane will use its displayed size as well.