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
160
How to style again PaneTabItem header when it is displayed in ToolWindow?
posted

Hello, 

Could you help me how  to style again PaneTabItem header when it is displayed in ToolWindow?

- Current situation

 1. I changed PaneTabItem header by restyle DockableTabItemTemplateKey, DocumentTabItemTemplateKey and UnpinnedTabItemTemplateKey and added it to XamDockManager resources (restyle by comment out igWindows:AutoDisabledImage)

 2. In XamDockManager new style is applied OK

- Problem

   When docked group (TabGroupPane) is floating, the changed style is not applied, default style is applied then removed igWindows:AutoDisabledImage is displayed again.

 

Parents
  • 2700
    Verified Answer
    Offline posted

    Hi Cao,

    I have been looking into your question and after investigation found some forum threads, where similar issues are discussed. You can check them out here and here.

    Basically, the reason for the custom styles not being applied when floating is that they are added to the to XamDockManager's resources. Since, floating panes are not part of the Window, they are also not part of the logical tree of the XamDockManager and hence the styles in its resources do not affect them. You can solve your issue by adding your styles in the application resources instead. Another option is setting the style for the PaneTabItem in the ToolWindowLoaded event.

    Please, test this approach on your side and if you require any further assistance on the matter, please let me know.

    Sincerely,
    Bozhidara Pachilova
    Associate Software Developer

Reply Children