TabSplitter without Header and Buttons

Hi,
I want to use a TabSplitter control to separate my documents view from a sripting designe.
I need to implement it into a DockingManager as shown in the VisualStudio sample from Syncfusion.
This sample has the same problem I have. The Header("False") and the Buttons are visible but should'nt.

VS_Style.png

I had a look at the post
https://www.syncfusion.com/forums/152435/how-do-i-hide-the-header-and-close-button
but it's useless for me, because I 'm using Themes and I don't want to use styles in control
s resources directly.

Is there a chance to hide the complete header in an easy way?

Thanks,
Jürgen


3 Replies

SG Sangeetha Ganesan Syncfusion Team June 30, 2021 02:09 PM UTC

Hi Jürgen 
 
Thanks for contacting Syncfusion support.  
   
We have checked your query “How to hide the header of the TabSplitter ” . There is no direct option to hide TabSplitter headers and we have placed TabSplitter headers on LayoutPanel container. So, you can hide the TabSplitter header by collapsing LayoutPanel visibility.  
   
Please check the below Code Snippet and Screenshot for your references.  
 
Code Snippet: 
 
private void TabSplitter1_Loaded(object sender, System.Windows.RoutedEventArgs e) 
        { 
            TabPanelAdv panel = VisualUtils.FindDescendant(sender as TabSplitter, typeof(TabPanelAdv)) as TabPanelAdv; 
            LayoutPanel layoutPanel = (panel.Parent as LayoutPanel); 
            if (panel != null && layoutPanel!=null) 
                //Collapse the tab item header 
                layoutPanel.Visibility = Visibility.Collapsed; 
        } 
 
Screenshot:   

 
 
 
Please refer the below sample for further references.  
   
   
Regards,  
 
Sangeetha G 



JS Jürgen Schildmann July 1, 2021 06:27 AM UTC

Dear Sangeetha,
I tried that before from the link in my previous post.
In principle it works but the TabSplitters height is not the complete one from the parent control as you can see in your picture.

As a workaround I added a "SizeChanged" event for the parent control:

private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
{
    TabSplitter1.Width = this.ActualWidth;
    TabSplitter1.Height = this.ActualHeight + 30;
}


It works now but it would be much easier if hiding the header is a standard feature.
The best solution would be if this Splitter is a complete independend control.

Best regards,
Jürgen



SN Sudharsan Narayanan Syncfusion Team July 2, 2021 03:42 PM UTC

Hi Jürgen,  
 
Thanks for the update. Please let us know if you need any further assistance.  
 
Regards,  
Sudharsan N 
 


Loader.
Up arrow icon