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
770
Content Pane's header color when IsPinned is false
posted

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.

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    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.

Children