We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Show/Hide tab in docking manager

Hi, How do I show or hide tab in docking manager?

1 Reply

BA Berkunath A Syncfusion Team June 17, 2013 07:05 AM UTC

Hi David,

Thank you for your interests in Syncfusion products.

You can achieve your requirement by using the below code snippet,

[c#]

 private void Hide_Click(object sender, RoutedEventArgs e)
        {
            foreach (FrameworkElement element in Docking.Children)
            {
                if (DockingManager.GetState(element) == DockState.Document)
                {
                    DockingManager.SetState(element, DockState.Hidden);
                }
            }
        }

        private void Show_Click(object sender, RoutedEventArgs e)
        {
            foreach (FrameworkElement element in Docking.Children)
            {
                if (DockingManager.GetState(element) == DockState.Hidden)
                {
                    DockingManager.SetState(element, DockState.Document);
                }
            }
        }
   
I have attached the sample as per your requirements in the following link. Please run the sample and let us know if it helps you.

[sample link]

http://www.syncfusion.com/downloads/Support/DirectTrac/109354/HideTabs1867178630.zip

Please let us know if you have any concerns.

Regards,
Berkunath A


HideTabs_adf4c945.zip

Loader.
Live Chat Icon For mobile
Up arrow icon