开发者

How to make local touch event handler for windows phone page?

I have several pages in my windows phone/silverlight project in a constructor of one of the pages added touch event handler like this:

开发者_StackOverflow中文版Touch.FrameReported += Touch_FrameReported;

The problem is that it works for all the pages in my project, but I need to limit it just to one page. How can I do that?

How to make local touch event handler for windows phone page?


Call

Touch.FrameReported += Touch_FrameReported; 

when the page is activated, not constructed. Call

Touch.FrameReported -= Touch_FrameReported; 

when the page is deactivated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜