ViewportPanel.ActualWidth and ActualHeight return zero.

Feb 18, 2010 at 1:02 PM

How can I get the real size (in pixels) of the drawing area?

Feb 18, 2010 at 1:59 PM


Use property plotter.Viewport.Output.


Feb 18, 2010 at 2:15 PM

It returns 1.0 that is viewport virtual width, not the actual width of the Visual element where charts are shown.

It is strange, but ViewportPanel gets it real width and height values after some (not detected yet) condition.

Feb 18, 2010 at 2:48 PM

Inserted call to UpdateLayout() before reading ActualWidth - works fine.

But I can not understand why ... :-)