This project has moved and is read-only. For the latest updates, please go here.

How do you receive touch events in popups?

Dec 14, 2009 at 12:29 AM
Edited Dec 14, 2009 at 1:19 PM


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.


MultitouchScreen.AddPreviewNewContactHandler(popup, OnPreviewContactDown);


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.