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?
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.
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.
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.
Also, please address context menu question above.
Thanks!
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.