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.
Unfortunately, activation email could not send to your email. Please try again.

Show/Hide tab in docking manager

Thread ID:





109374 Jun 10,2013 08:48 AM Jun 17,2013 03:05 AM WPF 1
Tags: Tools
David Florant
Asked On June 10, 2013 08:48 AM

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

Berkunath A [Syncfusion]
Replied On June 17, 2013 03:05 AM

Hi David,

Thank you for your interests in Syncfusion products.

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


 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]


Please let us know if you have any concerns.

Berkunath A



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.