Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1300
How to get Height & Width of NetworkNodeNode in XamNetworkNode ?
posted

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.HeightnetworkNodeNode.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

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Prasad,

    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.

Children