This is a useful thing to know if you ever want to do anything funky with Silverlight layout (for example, create an HtmlHost control that floats an iframe in exactly the right place over the plug-in):
Point point = element2.TransformToVisual(element1).Transform(new Point(0,0));
This returns a point that reflects the position (point) of element2 in element1's coordinate space. Nice.
05 May 2009
» Next Post:
My favourite underused keyword in C# is...
« Previous Post:
Comments are closed for this post.
11 Nov 2009
Thanks, but i want to place htmlhost on a childwindow so that i can move html host along with childwindow
Can you help on this.