Hi,
I am XamDockManager in our application and have added few custom icons/button on header by overwriting the header template. Icons/Buttons appears properly when the panes are docked but disappears when it floats. How to make it appear all times? Please let me know.Thanks,Mahadev
This could happen for a couple of reasons. First, if there is only 1 pane visible (i.e. a single ContentPane or a single TabGroupPane) within a PaneToolWindow then by default the caption of the content pane is not shown and instead the non-client area/chrome of the floating window is shown. That can be controlled by setting the FloatingWindowCaptionSource to UseContentPaneCaption if you still want it to use the PaneHeaderPresenter even in that situation. Second, since the floating windows are in a separate WPF Window they will not be part of the WPF style resolution so if you have put your style for the PaneHeaderPresenter within the XamDockManager's Resources or one of its ancestors then that won't be picked up by the WPF framework. You would either need to put that style into the app's resources or you would need to handle the ToolWindowLoaded event and put the resources into the Resources of the e.ToolWindow of that event.
Sorry for the delayed response. I think, the issue is because of the second reason. Could you please provide a sample to address this?
Thanks.