I need to style the header of a content pane when it is unpinned. I need to accomplish two tasks:
Thank you for your post. I have been looking into your requirement and I created a sample project for you with the look you want. Basically I created a Style for the PAneTabItem control and bind its Height to the Height of the XamDockManager. I also set its Background and FontWeight properties. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Sincerely, Stefan, MCPD Developer Support Engineer Infragistics, Inc. www.infragistics.com/support
I'm a coworker of Adam's. There are a number of ContentPanes that using this as a default style breaks. Is there a way this template can be applied to one particular control? I didn't see any potential DP candidates, so I'm guessing overriding the ContentPane might be necessary?
I have modified the sample I sent you before, so now it has the functionality you want. Basically I added a Trigger to the Style of the PaneTabItem and check its Header, so now it applies only to one Pane as you want. Please let me know if this helps you or you need further clarifications on this matter.
That approach does the trick! Thank you.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
On further use, it's looking like we'll need more control of the header content and various states (mouseover, etc). Can you suggest an approach that wouldn't involve pulling in the template for this whole control? In particular, I think the header will need a real content presenter that can take elements, and we'll need control over the borders and margins during mouseover.
If not, understandable, but this particular template is one we were hoping to avoid.