Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Floating content pane loses custom icons/buttons placed on the header.
posted

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

Parents
  • 54937
    Offline posted

    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.

Reply Children