Hello,
Is it possible to change the background color of the Content Pane's header when IsPinned is false ?
I tried several things but could not achieve this simple thing.
Each time, it changes the Content Pane's header but when IsPinned is true...
Thank you in advance.
Thank you for your post. I have been looking into it and I suggest you use the following Style for the PaneHeaderPresenter in order to get the look you want:
<Style TargetType="{x:Type igDock:PaneHeaderPresenter}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type igDock:ContentPane}},Path=IsPinned}" Value="False"> <Setter Property="Background" Value="YellowGreen"/> </DataTrigger> </Style.Triggers> </Style>
And if you want to change the Background of the Tab, when the ContentPane is unpinned you can use the following Style:
<Style TargetType="{x:Type igDock:PaneTabItem}"> <Setter Property="Background" Value="YellowGreen"/> </Style>
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
That's exactly what I wanted !
For my case, I just didn't know that the target type was the PaneTabItem.
Thank you,
Stefan.