Hy.
I am using XamDockManager on which I add ContentPanes with different functionalities. For every ContentPane that I add I would like to have a different tooltip, but I don't know how to set the tooltip for the header of the ContentPane. How can this be done in code? The ContentPane has a property called ToolTip but this does not show the tooltip when you go over the header of the ContentPane.
Thanks very much for any suggestion.
Nico
Hi Andrew,
I am looking for adding a button to ContentPane.HeaderTemplate in the "Window Position" expander and add functionality to control a data grid in the content pane. can I achieve this.
Thanks,
Ravi.
Hy Andrew.
Thanks very much. I used TabHeaderTemplate and it's working. This was the property I needed.
Thanks again.
I didn't realize you were talking about doing this within the DocumentContentHost. When a ContentPane is within a DCH, it doesn't show its header. Instead, a PaneTabItem is created that represents the header portion. That is also why you didn't see a tooltip when you set it on the ContentPane because the tab item isn't part of the ContentPane - the ContentPane is in essence the content of that tab item. So in this case you need to set the TabHeaderTemplate and in order to get to the ContentPane, you need to use the Pane property of the PaneTabItem.E.g.
I have a simple sample in which I use the XamDockManagaer. I attached it. I can't se why the tooltip it's not displayed. Maybe is there a setting and I don't see it.
Thanks very much.
I tested the snippet I provided and it worked for me. Are you doing this in a simple sample? If so, can you post it here so I can try it? If you're only getting this problem in your application then you will probably need to reduce it down and submit it to the support group.