I would like to change the tooltips. Can you please provide a sample?
Thanks,
Jon
Hello Jon,
Thank you for your post. I have been looking into your requirement and you could modify the default style for the ‘PaneHeaderPresenter’ in order to set your custom text for the desired buttons. You could find the default styles for the XamDockManager in:
C:\Program Files (x86)\Infragistics\2014.2\WPF\DefaultStyles\DockManager\DockManagerGeneric.xaml
I am attaching a sample application(DockManagerButtonsTooltip.zip) that shows it.
Let me know, if you need any further assistance on this matter.
This is not working for me. Maybe it is because my panes are in a DocumentContentHost? Also, I need the Office2013 theme for these. I'm thinking BasedOn will not work since I am overriding the entire style, right? I'll need to just use the Office2013 template for DockManager?
Hi Jon,
Thank you for your reply. Could you please attach a screenshot of the desired buttons of the content pane whose tooltip you would like to change when using DocumentContentHost?
Looking forward to hearing from you.
Here is the requested screenshot.
https://www.dropbox.com/s/gmgbceib49oltn3/tooltip_screenshot.png?dl=0
Eventually I will need the style to work on a tool window as well so if you can show how that style would work that would be great as well.
Thanks!
Thank you for your reply. I was looking into your requirement and I modified my sample application(DockManagerDocumentTabItemTooltipOffice2013) applying ContentTemplate for the DocumentTabGroup. I set the tooltip for the close button in this template to some custom text. The default template is located in:
C:\Program Files (x86)\Infragistics\2014.2\WPF\DefaultStyles\DockManager\DockManagerOffice2013.xaml
The necessary brushes are located in:
C:\Program Files (x86)\Infragistics\2014.2\WPF\DefaultStyles\DockManager\ DockManagerOffice2013_Brushes.xaml
Did you guys know you're phenomenal? Well you are!
Do I need to do a similar procedure if I want to modify the right-click context menu wording / options available on the tabs or is there a better way for that?
The ContentPane will dynamically add menu items to the right click menu for the content pane's header and tab item as well as the menu displayed from the PaneHeaderPresenter's template (the one with a name of PART_PositionMenuItem) based on its current state, location, etc. So if you want to alter the menu items then you would typically handle the OptionsMenuOpening event and change the menu items and/or add/remove them as needed. If you're just trying to generically (i.e. not pane specific) change the text then you might use the ResourceCustomizer. There's a help topic for using this class.
Also, please address context menu question above.
That does work and I am fine with that.
I did think I saw a different theme show the tab insertion preview correctly. Maybe I am mistaken.
It sounds like you're describing how the tab preview shows a tab/notch on the left edge of the control. That is the expected behavior and matches what VS was doing at the time when the xamDockManager was initially implemented. If you want an indicator as to where the tab item will be positioned then you can set the TabItemDragBehavior to DisplayInsertionBar. That will render an "I" between the tabs where the tab(s) will be inserted.
I think I found a bug with the Office2013 template.
When you have a bunch of tabs (in the project you attached, just add Document2-5 after Document1.xaml in the TabGroupPane), try to move Document 5 between Documents 2 and 3. You will see that the light blue preview highlight shows the tab moving to the front of the tabs. What really happens is the tab goes where you drop it. So it works as intended, the highlighting when dragging the tab over the tabs is incorrect.