Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeListView Sample for Winforms (Read 1725 times)
Ismail
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Dec 11th, 2020
NodeListView Sample for Winforms
Dec 11th, 2020 at 1:55pm
Print Post  
I can't find a Winforms sample (C#/VB.NET) for the use of NodeListView. I am interested in using this component to drag shapes and connectors to the canvas. Is there a sample demonstrating this that I'm not aware of?

Does NodeListView allow defining different connectors?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: NodeListView Sample for Winforms
Reply #1 - Dec 11th, 2020 at 2:31pm
Print Post  
You can find NodeListView used in "Logic Model" example at https://mindfusion.eu/products/winforms/diagramming/samples but it's not showing anything else other than AddNode calls.

Unfortunately you can't add connectors to NodeListView at this time. You could however add shapes representing connectors to the list, and replace them with DiagramLink instances when dropped on canvas -
https://mindfusion.eu/blog/create-diagram-connectors-using-drag-and-drop/

The code from blog above is for WPF, but WinForms API should be mostly the same.

Regards,
Slavcho
Mindfusion
« Last Edit: Dec 11th, 2020 at 5:11pm by Slavcho »  
Back to top
 
IP Logged
 
Ismail
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Dec 11th, 2020
Re: NodeListView Sample for Winforms
Reply #2 - Dec 12th, 2020 at 2:23am
Print Post  
Thanks for the fast response Slavcho.
Ismail
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint