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.
Hello, 1) That's correct, but if you want to specify a style for the DockableTabItems you will have to do it in the Application.Resources since Window.Resources apply to the window only. Adding DockableTabItemTemplate requires adding a few more styles. I attached an application showing how to do it. 2) You don't need this style if you are going to modify only these templates.Best Regards,Teodor - Software Engineer in TestInfragistics
Window.Resources
OK, great.I moved everything to the Application resources, but are the additional styles (XamPager and the four repeat buttons) really required to also reside in the application resources? (Because they do not seem to be referenced by the ControlTemplate and the scroll buttons work and look properly without them. Sorry for asking, but I would like to have as few clutter as possible in my resources).
Hi,The application will work fine without them too, so you can remove them from the application resources if you're not going to change their templates..Teodor - Software Engineer in TestInfragistics
Thanks!