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.

Removing Items from a DockingContainer

Thread ID:

Created:

Updated:

Platform:

Replies:

79972 Mar 5,2009 11:16 AM Mar 6,2009 01:57 PM WPF 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 5, 2009 11:16 AM

I'm having trouble removing a control from the DockingManager. I can remove it from the Children collection, but the change doesnt reflect in the display.

What's the solution?

I've pasted some of the code below.

Thanks in advance,
Frank



bool doesContainBefore = this.dockingManager.Children.Contains(controlToRemove);

Console.Out.WriteLine("doesContainBefore = " + doesContainBefore.ToString());

// Remove the old one from the collection <---- doesn't work
this.dockingManager.Children.Remove(controlToRemove);

bool doesContainAfter = this.dockingManager.Children.Contains(controlToRemove);

Console.Out.WriteLine("doesContainAfter = " + doesContainAfter.ToString());




Balavasanth [Syncfusion]
Replied On March 6, 2009 01:57 PM

Hi Frank,

Thanks for your interests in Syncfusion products

We could not able to reproduce your mentioned issue. Instead we have create a simple sample which demonstrates the dynamic adding of the children element to the Docking Manager control and dynamically removing its added children. Kindly download the sample from the below mentioned location.

http://files.syncfusion.com/support/Tools.WPF/7.1.0.30/Tools-WPF-Forum/Docking/main.htm

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.

;