I have adjusted how the tab groups look in my Dock manager (i want the tabs always at the top, instead of the bottom for one example), so for any tab groups in my Shell.xaml i have adjusted the Style attribute to point to the new StaticResource style.
This works great but im still missing one scenario. If the user creates a tab group at runtime by moving windows around its getting the default style, is there a way i can enforce custom styles for newly created items?
Hello Dimitry,
I'm just cheking if you have been able to resolve your issue. If you need further assistants do not hesitate to ask.
Perhaps you are setting the Theme property of the xamDockManager. WPF only supports a single local style.
Did you try placing the style in you shell.xaml as opposed to a separate resource dictionary?
Thanks for your reply but im having an issue implementing it the way you suggested. If i remove the Key from the <Style TargetType="{x:Type igDock:TabGroupPane}"> it no longer seems to apply to anyhting in my Shell.xaml. Is there something i'm doing wrong?
If you removed the x:Key from the Style then it would affect all TabGroups within the xamDockManager although it still would not affect the TabGroups within floating panes since those are in separate WPF Windows. To handle that you would either need to put the xaml with the style into the application's resources or handle the ToolWindowLoaded and add the style to the e.ToolWindow.Resources. One other alternative is to create a derived xamDockManager and override the CreateTabGroupPane method and set the Style on the TabGroupPane you return.