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.
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 controls resources directly.
Is there a chance to hide the complete header in an easy way?
Thanks,
Jürgen
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;
} |
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