Hi,
I am having a XamNetworkNode with nodes of different dimensions. At runtime how to get the Height & Width of a NetworkNodeNode?
I am trying to use networkNodeNode.Control.Height & networkNodeNode.Control.Width but it is working only if the node is in view. The "Control" is null if the node is not in view, so I am not able to findout the width and height of node.
Any help please?
Thanks
Prasad
Hello Prasad,
I am just checking if you have any other questions on the matter.
The NetworkNodeNode elements are visuals and are virtualized when they are not in view so the performance of the XamNetworkNode is improved. This means that they are not rendered and their visual representations have null values. It will prevent getting the height and the width of any of the nodes that are not in view. What I could suggest you in this case is to try to put the control in a container with infinity width such as a StackPanel or ScrollViewer.