Sorry, I have to ask here again because I still don't have what I want.
According to Andrew's instructions in this posthttp://ko.infragistics.com/community/forums/t/13218.aspx
I was able to create a DataTemplate that shows a Tooltip if the mouse hovers the text in the TabHeader.
However, what I want is a Tooltip to be shown if the mouse hovers _any_ part of the TabHeader, i.e. the text, the image or any free space around and in between.
I figured that I probably have to modify the ControlTemplate of the PaneTabItem to achieve this, but I don't really know what to do there.Any help would be appreciated.
Hello,
I have been looking into your requirement and I have achieved the desired tooltip functionality by changing the default style for the ‘TabbedDocumentTab’ as setting the ToolTip like :
ToolTip="{Binding Header}".
You can find the default styled in :
C:\Program Files (x86)\Infragistics\2013.2\WPF\DefaultStyles\DockManager\DockManagerGeneric.xaml
I am attaching a sample application(WpfApplication3.zip).
If you need any further assistance on this matter, feel free to ask.
Hi Teodor,
thank you very much, it works! (I have never modified a ControlTemplate before, but I'll probably be able to do such small changes on my own in the future.)
Two additional questions:
1)
If I want to achieve the same behavior for dockable and unpinned TabItems, I probably have to add the same binding here
<ControlTemplate x:Key="{x:Static igDock:PaneTabItem.DockableTabItemTemplateKey}" TargetType="{x:Type igDock:PaneTabItem}"> <Border x:Name="ctrlBorder" SnapsToDevicePixels="true"> <igWindows:CardPanel ToolTip={Binding Header}> ....
and here
<ControlTemplate x:Key="{x:Static igDock:PaneTabItem.UnpinnedTabItemTemplateKey}" TargetType="{x:Type igDock:PaneTabItem}"> <Border SnapsToDevicePixels="true"> <igWindows:CardPanel ToolTip={Binding Header}>
Is that correct?
2)
Can I leave out the
<Style TargetType="{x:Type i:PaneTabItem}">...</Style>
from the Resources collection in the project that you created for me without breaking anything (it seems to work)?
Thanks again.