Is it possible to change the color of the background/foreground of the tab of a content pane in a TabGroupPane?
I saw couple of posts back the option to add a header template but it change the stripe, i want to change the actual tab color (like in excel "tab color")
Thanks
The tab that represents the ContentPane in the TabGroupPane is a PaneTabItem so you would have to provide a custom Style for the PaneTabItem. E.g. you would put a Style that targets the PaneTabItem with the appropriate setters to accomplish what you want (changing Background, Template, etc.) into the Resources of the xamDockManager.
ok, I've added :
<igDock:XamDockManager.Resources> <Style x:Key="TheStyle" TargetType="igDock:PaneTabItem"> <Setter Property="Background" Value="Red" /> </Style> <Style TargetType="igDock:PaneTabItem"> <Setter Property="Control.Foreground" Value="Yellow" /> </Style></igDock:XamDockManager.Resources>
so all my tab panes headers foreground are yellow, but trying to attache the specific res background to a specific content pane in the tabgorup gives the error "'PaneTabItem' TargetType does not match type of element 'ContentPane'"
so where exactly do I need to set the style to if for example I want a - green/red/yellow tabs tab control?