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:

Created:

Updated:

Platform:

Replies:

109374 Jun 10,2013 08:48 AM Jun 17,2013 03:05 AM WPF 1
loading
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,

[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

CONFIRMATION

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.

;