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.

Clearing and Recreating a Diagram

Thread ID:





98509 Mar 4,2011 10:20 AM Mar 4,2011 11:59 AM ASP.NET Web Forms (Classic) 2
Tags: DiagramWebControl
Phil Sullivan
Asked On March 4, 2011 10:20 AM

I am creating a simple diagram with nodes and connections. The diagram control is added in XAML. In a handler I clear the connecions and Nodes through this method:


When I try to recreate the diagram using the same code all of the nodes get added to the top left of the diagram and overlap each other. I am using the HeierarchialTree layout. Do I need to do something else to clear the diagram?

Phil Sullivan
Replied On March 4, 2011 11:04 AM

This is regarding the WPF diagram, my apologies that I submitted it in ASP.NET forum.

Phil Sullivan
Replied On March 4, 2011 11:59 AM

Stumbled accross the solution:

HierarchicalTreeLayout tree = new HierarchicalTreeLayout(diagramModel, diagramView);



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.