How to get a Canvas' width when auto sizing is set?

Posted by ThePower on Stack Overflow See other posts from Stack Overflow or by ThePower
Published on 2010-03-15T17:17:32Z Indexed on 2010/03/15 17:19 UTC
Read the original article Hit count: 277

Filed under:
|
|
|

Hi, I'm using silverlight and I have created a Canvas, it has Auto Width and Height. But I require the Actual Width and Height in code.

Is there a way I can do this? I don't want to use .Parent.Width, because the parents width may also be set to auto to replicate its parents height.

Thanks again Lloyd

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight