1

I'm using the FindElementsInHostCoordinates method to find elements as the user swipes his finger across the screen. I'm noticing that it is reacting to if the phone was in portrait. For example - As I move my finger up it moves down, and as I move my finger to the right it moves left. It also only does something if I'm in the bottom half of the phone. So I think it if finding the coordinates that I'm hitting in landscape but acting as if I was in portrait. Does anyone know why this is happening?

Tom
  • 1,187
  • 2
  • 12
  • 21

1 Answers1

1

The host is always in portrait mode by design. However, you can read about a workaround in this blog post.

keyboardP
  • 68,824
  • 13
  • 156
  • 205
  • For some reason it's working on my emulator but I have the same problem on my phone? – Tom Jun 09 '11 at 17:58
  • Is you LayoutRoot at position 0,0? – keyboardP Jun 09 '11 at 18:10
  • Yes. Might it have to do with the fact that the emulator is running mango? – Tom Jun 12 '11 at 02:08
  • I'm not running Mango, so I can't test it. If you're creating a 7.0 project, it *should* be fine (might not be), but if you're creating a 7.1 project, maybe something has changed that's causing the code not to work. – keyboardP Jun 12 '11 at 02:27