Windows Phone 7 touch开发 [英] Windows Phone 7 touch development

查看:79
本文介绍了Windows Phone 7 touch开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几天里,我一直在开发Windows Phone 7应用程序.这是我第一次接触.net紧凑框架.这有点挑战,但我学到了很多东西.

我似乎找不到一件事.是每个元素都能自动被触摸还是我们需要使其可触摸?

下面的代码是一个示例.其使用鼠标输入方法.让我开始思考,这是否可以起到触摸作用?

私有空examplemethod_MouseEnter(对象发送者,MouseEventArgs e)
{
NavigationService.Navigate(new Uri("/MainPage.xaml",UriKind.Relative));
}

For the past couple of days i have been developing a windows phone 7 application. This is my first time ever touching the .net compact framework. Its slightly a challenge but I''m learning a lot.

There is one thing i cannot seem to find about. Is every element automatically able to be touched or do we need to make it touchable?

the code below is an example. Its using mouse enter in the method. It got me thinking, does this work as touch?

private void examplemethod_MouseEnter(object sender, MouseEventArgs e)
{
NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
}

推荐答案

要使其启用触摸功能,您需要使用StylusEvents而不是MouseEvents.而且,它们不能互相替代.您可以阅读我和其他一些Windows touch文章.

顺便说一句,如果您正在开发适用于Windows 7手机的应用程序,那么我很高兴地告诉您,您现在可以将Blend,Silverlight和XNA用于您的项目.
For making it touch enabled you need to use StylusEvents and not MouseEvents. Also, they can''t replace each other. You can read my and several other Windows touch articles.

By the way, are you developing an application for Windows 7 mobile phones, then I would be happy to tell you that you can use Blend, Silverlight and XNA for your project now.


是的, "过去几天,我正在为wp7开发.现在,我只是在学习紧凑的框架和wpf.我直到现在才真正接触到它.我喜欢使用获胜表格.

感谢您的好回答.有很大帮助.我在wp7上看到的所有这些示例应用程序的代码中都没有触摸支持.这就是为什么让我感到困惑. :D
Yeah i''m developing for wp7 for past few days. For the now i''m just learning the compact framework and wpf. I only really touch it before now. I liked using win forms.

Thanks for the Good answer. helps a lot. All these example apps i see for wp7 don''t have touch support in it''s code then. That''s why it was confusing me. :D


这篇关于Windows Phone 7 touch开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆