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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Docking Manager Tabbed Document

Thread ID:





81114 May 13,2009 12:02 PM UTC May 14,2009 04:35 PM UTC WPF 1
Tags: Tools
Administrator [Syncfusion]
Asked On May 13, 2009 12:02 PM UTC


Can you please provide me a sample of converting the dockpanel during runtime to a tabbed document through C# code. I tried converting the already existind control to a tabbed document through C# code but i was unable to do so.


Balavasanth [Syncfusion]
Replied On May 14, 2009 04:35 PM UTC

Hi Aishwarya,

Thanks for your interests in Syncfusion products.

When you have a Docking Manager control created dynamically with two dock panels in Dock side set to Left and Right, it is possible to change the DockSide value to Tabbed mode by setting the SideInDockedMode property for the dock panel and setting the TargetNameInDockMode. Kindly make use of the code snippet for more idea.

//creating Docking Manager
DockingManager DocManager1 = new DockingManager();
DocManager1.Name = "dockingManager1";

//creating first panel
StackPanel stackPanel1 = new StackPanel();
DockingManager.SetSideInDockedMode(stackPanel1, DockSide.Left);
DockingManager.SetState(stackPanel1, DockState.Dock);
DockingManager.SetHeader(stackPanel1, "StackPanel");
stackPanel1.Name = "stackPanel";

//creating second panel
DockPanel panel1 = new DockPanel();
panel1.Name = "dockpanel";
DockingManager.SetSideInDockedMode(panel1, DockSide.Right);
DockingManager.SetHeader(panel1, "dockpanel");
//DockingManager.SetTargetNameInDockedMode(panel1, "stackPanel");

//adding the children

Dynamically changing can be done as follows

//changing the side in Dock Mode to tabbed state
DockingManager.SetSideInDockedMode(panel1, DockSide.Tabbed);

//setting the Target Name in Docked Mode
DockingManager.SetTargetNameInDockedMode(panel1, "stackPanel");

This is the way it has to be done. But unfortunately on analyzing we found that we have some issues now while we change to the TabbedMode. Currently we are working on fixing this issue, we will update you once the issue gets fixed.

we regret for this inconvenience caused.

Please let us know if you have any queries.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon