how to get coordinate of control in windows phone 7 -


i want know how coordinate (x,y) of 2 textboxes , compare each others, saw code use geocoordinate try don't know why visual studio doesn't support library, me , give me code example (x,y) of controls, i'm using visual studio 2010 , os 7.1

i think geocoordinate gps position, can't use localise control in grid.

however, can use code localise control relatively grid or stackpanel thank code below :

    var transform1 = textbox1.transformtovisual(grid);//grid content panel      point absoluteposition1 = transform1.transform(new point(0, 0));      var transform2 = textbox2.transformtovisual(grid);//grid content panel      point absoluteposition2 = transform2.transform(new point(0, 0)); 

after that, can compare them.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -