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.

Docking Manager Tabbed Document

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.

Regards,
Aishwaria


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

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
DocManager1.Children.Add(stackPanel1);
DocManager1.Children.Add(panel1);

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");
UpdateLayout();

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.

Regards,
Bala.

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.

;