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.
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 PachilovaAssociate Software Developer
Hi Bozhidara.
Thank you for your answer and suggest.
I will test again by adding styles in the application resources instead.
Hi Bozhidara,
By setting the style for the PaneTabItem in the ToolWindowLoaded event, my problem is solved.
Thank you for your support.
I am glad that you were able to solve your issue.
Thank you for using Infragistics components.
Regards,
Bozhidara Pachilova