Невозможно установить связь между этими узлами вручную в addflow control в WPF.
I am developing a piping diagram with nodes and links in WPF. Am using thord party tool by Lassalle called AddFlow. http://www.lassalle.com/wpf/tutorial.pdf My Issue is : I have to few nodes on my canvas. I had dragged and dropped they are there on Canvas. I have to establish linking between these nodes manually. I should be able to drag the link from one node and connect it to the other node I am unable to do this. As this being a third party tool there is literally no reference document at all except for the above link that I mentioned. Request your help in this regard. Any quick reference or code is highly appreciated.
Что я уже пробовал:
void CreateDiagram2(AddFlow addflow) { // Create and add the nodes to the diagram addflow.AddNode(new Node(50, 50, 80, 80, "First node", addflow)); addflow.AddNode(new Node(280, 160, 100, 80, "Second node", addflow)); addflow.AddNode(new Node(50, 210, 80, 80, "Third node", addflow)); // We use LINQ to select in an array all the nodes of the canvas. var nodes = addflow.Items.OfType<Node>().ToArray(); // Create and add the links to the diagram addflow.AddLink(new Link(nodes[0], nodes[1], "link 1", addflow)); addflow.AddLink(new Link(nodes[1], nodes[1], "link 2", addflow)); addflow.AddLink(new Link(nodes[1], nodes[2], "link 3", addflow)); }
Jason Gleim
Вы заглянули на их веб-сайт и увидели адрес, который они опубликовали для поддержки?