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?
Hi dmeador,
XamNetworkNode visualize nodes and connections between them using data provided through the ItemsSource property. You could remove connections from the data and XamNetworkNode will reflect it in the layout.
You can use ConnectionTargetMemberPath to attach some numerical value to each connection, for example if the network node represents a computer network, the weight could represent the distance between 2 computers.
You can use the following XamNetworkNode's properties to style nodes' connections:
I would recommend submitting a feature request for being able to set connection's visibility here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx
Please let me know if you have any further questions.
Regards,
Ivan Kotev
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
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.
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!
ConnectionWeightMemberPath doesn't do anything yet.
Eventually, xamNetworkNode will support conditional formatting by connection, and that's where ConnectionWeight will come into play. At the moment, you can only specify node distance (i.e., the length of the connections) globally.
Has there been any movement on this? I'd like to add some edge formatting, or even just display the weight.
Thanks.
Hello again,
You can also see this forum thread:
http://es.infragistics.com/community/forums/t/67124.aspx
where it is explained how to format the connections. Also here you can read more about the Property used for this:
http://help.infragistics.com/doc/WPF/2013.2/CLR4.0/?page=InfragisticsWPF4.Controls.Maps.XamNetworkNode.v13.2~Infragistics.Controls.Maps.XamNetworkNode~DefineConnectionCallback.html
Hope this helps you.
My question was in response to:
The conditional formatting sample only formats the nodes. Is connection formatting scheduled to be supported in the next few releases?
Hello Kayla,
Here is a sample showing the functionality Douglas was talking about (Conditional Formatting):
http://es.infragistics.com/products/wpf/sample/network-node/conditional-formatting