Hello,
I want to change background color of just a strip and color of text when pane is unpinned and pinned as well.
I tried following code but it is not working as expected. Are their any properties which will help me to do this?
<Window x:Class="LayoutForDockManager.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:igDock="http://infragistics.com/DockManager"
xmlns:igWpf="http://schemas.infragistics.com/xaml/wpf"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type igWpf:ContentPane}" x:Key="SomeKey">
<Style.Resources>
<Style TargetType="{x:Type igWpf:PaneHeaderPresenter}">
<Setter Property="Foreground" Value="White">
Setter>
<Setter Property="Background" Value="Black">Setter>
Style>
Style.Resources>
Grid.Resources>
<igDock:XamDockManager>
<GroupBox Header="This Is Group Box">
<DataGrid>DataGrid>
GroupBox>
<igDock:XamDockManager.Panes>
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedBottom">
<igDock:ContentPane Header="Hello" TabHeader="KBData" >
<TextBlock Text="Hello">TextBlock>
igDock:ContentPane>
igDock:SplitPane>
igDock:XamDockManager.Panes>
igDock:XamDockManager>
Grid>
Window>
The foreground and background of ContentPanes' headers come from dynamic resources with certain keys. So in order to affect these properties I suggest putting Brushes with the respective keys (the keys can be found here) into the app's or XamDockManager's resources. The code should look similar to the following snippet:
<igDock:XamDockManager.Resources>
<SolidColorBrush x:Key="{x:Static igDock:DockManagerBrushKeys.PaneHeaderActiveTextFillKey}" Color="White" />
<SolidColorBrush x:Key="{x:Static igDock:DockManagerBrushKeys.PaneHeaderNotActiveTextFillKey}" Color="White" />
<SolidColorBrush x:Key="{x:Static igDock:DockManagerBrushKeys.PaneActiveCaptionFillKey}" Color="Black" />
<SolidColorBrush x:Key="{x:Static igDock:DockManagerBrushKeys.PaneNotActiveCaptionFillKey}" Color="Black" />
</igDock:XamDockManager.Resources>
Please let me know if I can provide any further assistance.