0

I want to stop a tap event from propagating in a XNA / Silverlight game

Here https://gamedev.stackexchange.com/questions/27029/how-to-stop-a-tap-event-from-propagating-in-a-xna-silverlight-game I found solution how I should to do it.

To get width and height I use ActualHeight and ActualWidth property.

But how can I get left top coordinates?

Community
  • 1
  • 1
nirmus
  • 4,913
  • 9
  • 31
  • 50

1 Answers1

1

You can use the Left and Top properties to get the position of the control.

prthrokz
  • 1,120
  • 8
  • 16
  • In WP7 button doesn't have `Left` and `Top` property – nirmus Jan 06 '13 at 17:15
  • 1
    Did not notice in your intial post :) take a look at this http://stackoverflow.com/questions/8206294/find-position-of-button-uielement-on-screen-relative-to-grid-windows-phone – prthrokz Jan 06 '13 at 17:20
  • It was in tag (windows-phone 7). Thanks a lot, it seems to work fine;) – nirmus Jan 06 '13 at 17:21