Get the size of a Silverlight window
Posted
by Aidenn
on Stack Overflow
See other posts from Stack Overflow
or by Aidenn
Published on 2010-04-12T22:37:09Z
Indexed on
2010/04/12
22:43 UTC
Read the original article
Hit count: 186
Silverlight
Hey!
I'm creating a Silverlight 4 Out Of Browser application. I have my MainPage that will be the "central" application. I want to be able to display another Control next to the MainPage, by using a Popup and I want it to be displayed right next to the MainPage.
How can I get the coordinates of the upper right corner of the MainPage at each moment? (Beware that this MainPage can be moved all over the screen and hence I will need to dynamically get the corner coordinates, in order to display my popup right next to the main window).
Any thoughts on this? Thank you!!
PS: the code is in C# :-)
© Stack Overflow or respective owner