Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node port (Read 3435 times)
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Node port
Jun 5th, 2008 at 12:11pm
Print Post  
Hello,

We have used GoDiagram for a while and now we are going for WPF and are interested in a native WPF framework.

Your framework seems to fit our needs, but I haven't seem if your nodes are supporting the notion of 'ports' ?

Imagine that we will draw an electrical circuit with a component that have 3 ports, 2 inputs, 1 output.

Will it be possible ?

Thanks
Didier
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node port
Reply #1 - Jun 5th, 2008 at 1:07pm
Print Post  
Hello,

I suppose the anchor points in WpfDiagram are similar to ports in GoDiagram. You can assign them to a node via the AnchorPattern property. Check the Anchors sample project for a demo showing how to set up and use anchor points.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Re: Node port
Reply #2 - Jun 6th, 2008 at 9:14am
Print Post  
Hello,

I've downloaded the trial and checked the Anchor demo.

It is not exactly what I mean. Could you choose the anchor on which you bind ? And accept a connection or  not ? As I can see you can only established a connection on the node and the anchor will be choosen. Several connections between 2 nodes on different anchors don't seem to be possible.

As said in my previous post, electrical circuit is a good sample. Imagine 2 circuits that have several ports(input/output) and several connection between them (nodes).

- Is that possible to accept a link on 1 anchor and refuse it on another (based on the other side of the connection) ?

- Is that possible to freeze the connection on one anchor (if choosable) ?

Thanks
Didier
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node port
Reply #3 - Jun 6th, 2008 at 10:53am
Print Post  
Hello,

You could handle the ValidateAnchorPoint event and set e.Cancel = true to refuse a connection.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint