Displaying large graph with scrollViewer

May 11, 2012 at 7:23 PM
Edited May 11, 2012 at 7:24 PM

I am trying to dispay a horisontally large graph, using System.Windows.Controls.ScrollViewer. I use my personal layout. In the method LayOutGraphCore I say

  RectangleF rectangleF = layoutContext.GraphRectangle;

But its dimensions are always the same ( width, height - 988; X,Y - 6,  so as I understand altogether it is 1000). 

Can I make these dimensions larger? How?

May 11, 2012 at 11:59 PM

What are you setting the Width and Height of the NodeXLControl to?  If you are hosting your NodeXLControl in a ScrollViewer, then the NodeXLControl (and therefore the LayoutContext.GraphRectangle) will be as large as the Width and Height you assign to it.

-- Tony

May 14, 2012 at 11:08 AM

Tony, thanks a lot, the answer was so evident that I couldn't think of it myself.