Hi,
I have the below requirement. I am using a content pane and inside that I placed a grid panel. This panel contains some controls and this panel is resized to show all the controls placed inside. Now, I need the contentpane should be automatically resized to show the content inside. I have tried to set the width as Auto, bind the width to child grid panel's width etc. but no luck with them.
Can anyone suggest how to handle this.
Thanks in advance.
Ganesh
I'm not sure where your content pane is within the xamDockManager so the answer is that it depends on where it is to say if its possible. When a ContentPane is by itself in a SplitPane docked to the Right/Left, the height of the ContentPane will be the height of the SplitPane which will depend on the height remaining on that edge of the dockmanager after any outer splitpanes have been positioned. That exent has no relation to the size of the content. However, the width SplitPane that is docked on the left/right is based on the size of its content by default (i.e. as long as you don't set the Width property). Similarly for a SplitPane docked to the Top/Bottom, its width will always be the width of the edge to which its docked after positioning the outer split panes. The height in that case will be based on the height of the content unless you have specifically set a Height or once the user resizes the split pane (e.g. using the panesplitter). For panes within the documentcontenthost, the panes are always sized to fill the content area of the tabgroup to which they belong.