Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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));
}
Posted

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.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900