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
Since I'm not sure what exactly is the issue you are encountering it would be better if you provide a sample that demonstrates the actual issue you are having. Are you creating a Style that targets the PaneHeaderPresenter? If so then make sure that style is in the App's Resources (i.e. the Resources section of the app.xaml). If you are trying to customize the PaneHeaderPresenter and you want it to show when floating then you would probably want to set the FloatingWindowCaptionSource to UseContentPaneCaption.
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.
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.