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
444
MinHeight, MaxHeight just not quite enough
posted


Hi

I have a XamTabControl inside a DockManager as a SplitPane.

I have the Pane unpinned ready and waiting for the user to hover over for access.

Within the Tab Control I have 2 tabs, 1 a natural height of 200 and the other of 1000.

Because we have the natural size to content,  selecting 1 tab is ok, selecting the other expends the whole thing to the screen.

I can set MaxHeight, MinHeight, etc which works, but if the user then drags the splitter bar it will not resize the content (as we have put Height values on it)

Any suggestions ?

cheers

Martin

Parents
No Data
Reply
  • 54937
    Offline posted

    Before you drag the splitter, the Height of the SplitPane is double.NaN (i.e. unspecified) so the height of the SplitPane is based on its desired size which essentially is based on the content. Once you drag the splitter though we have to change the Height of the splitter so we can honor the split height that the user has specified. What is the behavior that you would expect once the user drags the splitter?

Children