This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I have the following declaration for my DiagramSurface instance:
i.e. Width and Height properties are not specified and dimensions of the surface are adjusted to bounds of the window, as I understand. But when I try to get the surface's size (ds.Width or ds.Height), I get NaN values. Is it possible to get actual size of the surface if its bounds were not specified? //Dmitry |
|
|
Hello Dmity When you do not specify the width and height of a WPF visual (such as our DiagramSurface), the Width and Height properties are set to NaN to indicate to layout panels that the visual should be auto sized. You'll want to look at the ActualWidth and ActualHeight properties to get the pixel dimensions of the DiagramSurface. Jason Fauchelle |
|
|
Hello Jason! Thank you! That's what I need exactly! //Dmitry |
|