Does anyone know how to return the width and height of the content of a DocumentContent? I need to know what the visible area is of cont4 in the following code:
DocumentContent cont4 = new DocumentContent();
cont4.Name = "cont4";
cont4.Content = mainCanvas;
cont4.Title = "Document";
I've tried obvious functions like Height, ActualHeight etc., and they all return either 0 or NaN. Any thoughts anyone?
Thanks a million in advance.