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. Image for the cookie policy date

Removing Items from a DockingContainer

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




1 Reply

BA Balavasanth Syncfusion Team March 6, 2009 06:57 PM UTC

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.


Loader.
Live Chat Icon For mobile
Up arrow icon