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
35
How to remove header of XamDockManager:SplitPane?
posted

Hello

I am having trouble removing the default header that is implemented with a SplitPane.

My goal is to remove the header so I can implement my own styling to it as shown below (Top is my styling applied and bottom is default):

My code is as follows:

<igDock:XamDockManager x:Uid="xamDockManager" x:Name="xamDockManager"
                                   Theme="{Binding Theme}" 
                                   PaneNavigatorButtonDisplayMode="Always"  
                                   HorizontalAlignment="Stretch" 
                                   VerticalAlignment="Stretch" 
                                   Margin="0" 
                                   FloatingWindowDragMode="Immediate"
                                   ToolWindowLoaded="OnToolWindowLoaded"
                                   ActivePaneChanged="xamDockManager_ActivePaneChanged"
                                   PaneDragOver="xamDockManager_PaneDragOver"
                                   PaneDragEnded="xamDockManager_PaneDragEnded"
                                   >
                    <igDock:XamDockManager.Resources>
                        <Style x:Uid="Style_4" TargetType="{x:Type igDock:XamDockManager}">
                            <Setter x:Uid="Setter_16" Property="Background" Value="{DynamicResource GenericBackgroundBrush}" />
                            <Style.Triggers>
                                <DataTrigger x:Uid="DataTrigger_3" Binding="{Binding IsToggleFullScreen}" Value="True" >
                                    <Setter x:Uid="Setter_25" Property="Background" Value="Black"/>
                                </DataTrigger>
                                <DataTrigger x:Uid="DataTrigger_4" Binding="{Binding VCModel.IsSoftMonitorMode}" Value="True">
                                    <Setter x:Uid="Setter_12" Property="Background" Value="Black"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </igDock:XamDockManager.Resources>
                    <igDock:XamDockManager.Panes>
                    <!-- Query Window -->
                        <igDock:SplitPane x:Uid="queryPane" 
                                          x:Name="queryPane" 
                                          utilities:HelpProvider.HelpParameter="150000000"
                                          igDock:XamDockManager.InitialLocation="FloatingOnly"
                                          igDock:XamDockManager.FloatingLocation="200,200"
                                          MinWidth="300"
                                          SplitterOrientation="Vertical"
                                          Visibility="{Binding QueryWindowVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}"
                                          >
                            <igDock:ContentPane x:Uid="paneQuery" 
                                                x:Name="paneQuery" 
                                                Header="Query" 
                                                AllowInDocumentHost="False"
                                                AllowPinning="False"
                                                AllowDocking="False"
                                                MinWidth="300"
                                                AllowFloatingOnly="True"
                                                Visibility="{Binding QueryWindowVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}"
                                                AllowDockingLeft="False" AllowDockingRight="False" Background="{DynamicResource GenericBackgroundBrush}">
                                <views:QueryUserControl x:Uid="views:QueryUserControl_1" x:Name="QueryWindowUserControl"/>
                            </igDock:ContentPane>
                        </igDock:SplitPane>



                    </igDock:XamDockManager.Panes>