How do you receive touch events in popups?

Dec 13, 2009 at 11:29 PM
Edited Dec 14, 2009 at 12:19 PM

Hi,

first of all many thanks for this great framework!!!

I'm currently changing my application to receive the touch events via Multi-Touch Vista. The point is now, that many of the application UI elements are embedded in popup windows and that touch events aren't raised in popups for me. Can I somehow do the steps seemingly done for mt:window manually for popups? Replacing the popups with e.g. a Border resulted in correctly receiving the events. But leaving the popups away and putting the controls into the same window is currently not an option. For certain reasons the UI elements currently have to remain inside popups.

Neither

MultitouchScreen.AddPreviewNewContactHandler(popup, OnPreviewContactDown);

nor

MultitouchScreen.AddPreviewNewContactHandler(borderInsidePopup, OnPreviewContactDown);

led to OnPreviewContactDown being called (using MultipleMice input provider btw.).

 

Putting a TouchablePanel with a TextBlock in it like in the hello world example doesn't work either.

 

I'd be very thankful for any help, because this is certainly a show stopper at the moment.