I'm having trouble manipulating the connections in the XamNetworkNode. I can successfully set up nodes and connections, but I would like to control the visibility of connections similarly to how I control the visibility of nodes. I have tried manipulating the ConnectionWeightMemberPath in NetworkNodeNodeLayout like I'm currently using ConnectionTargetMemberPath, but I am not seeing any change in the weight of the connection at all.
Is there a way to manipulate the visibility of a connection between nodes?
Unfortunately, I do not believe XamNetworkNode supports manipulating connections on an individual basis. It currently only provides the following options that were listed above:
These are applied to all the connections in the XamNetworkNode and individual connections are unable to be configured separately.
So what does the ConnectionWeightMemberPath property do exactly? Can you give me a scenario where it might be used?
I do want to change the distance between nodes however not globally throughout the whole network. I want to be able to change the thickness and length per connection, given a condition.
This can be done per node, as shown in the samples you give with your trial, but as far as I can see, not per connection.
Can you please confirm this?
Thanks!
That is correct. ConnectionWeight has no effect at this time, but we plan to implement functionality for this in the future. NodeDistance allows you to customize the layout distance globally, as per this sample:
http://samples.infragistics.com/sldv/RunSamples.aspx?cn=network-node#/network-node/node-distance
I'm fairly sure that the ConnectionWeightMemberPath has no effect on the layout of the XamNetworkNode. To change the distance between nodes, I think the only option you have is the NodeDistance property on the XamNetworkNode class.
Hi,
I'm trying to use the ConnectionWeightMemberPath to alter the Connection's length. I want to show the closeness between two vertices through the length of the connection.
However when I alter the ConnectionWeightMemberPath, nothing happens. It seems like the layout still acts on its own, ignoring the weight I set per connection. Can you please tell me what I might be doing wrong?
Thanks,
Jennifer