I would like to add additional buttons to the contentpane header specifically a 'collapse' button that keeps the header in place but collapses the content. There are a number of other application specific buttons we would like to add to this header as well. Can I get some general direction on how this could be accomplished?
In terms of adding things to the header, you would usually do this by retemplating the PaneHeaderPresenter element.
Got the retemplating to work, any ideas on how to collapse the "content" portion of the ContentPane, and leave the PaneHeader in place to be docked, etc. ? It seems that it does not resize to its container after the content is collapsed.....
I don't know what kind of arrangement you have or what isn't resizing with respect to what in your situation but there isn't anything to help or directly prevent implementing this functionality. I mean if the ContentPane is in a SplitPane on left and that splitpane has an explicit width then the split will still have an explicit width regardless of what's in the CP. If there were no explicit width then it would size to the content of the CP (or CP's & TabGroup if it contained multiple) until the splitter were resized. If the CP is in a SplitPane with other CP's then the RelativeSize will still be used to distribute size to the pane.
This functionality may be something that's better submitted as a feature request since it may require some special handling on the part of the XDM (e.g. changing the splitpanes to not try to distribute any more than their desired size, CP would probably need to know where it is to possible rotate the header to conserve space, CP would probably want to prevent collapsing while unpinned, etc).