After much procrastination, I started to create my first Windows Phone 7 application this week. To be honest I did not think it would be an easy task given that it has been quite a while since I last opened visual studio to code something(much of my time has been spent admiring apps written by the amazing Imagine cup competitors;-)). Well, but I decided to take the plunge, and to my complete surprise I wrote my first app in flat 15 minutes. Hence this blog post, coz I believe my example should inspire several others to start writing apps for the new and upcoming Windows Phone 7 platform using cool technologies such as Silverlight and XNA. Let me walk you through the steps I took to get started – 1. The first thing I had to do was of course to download the much talked about tools for Windows Phone 7. It was a totally painless experience to download and run the setup on my Windows 7 PC. The set up installed the following components for me in less than 5 minutes.
- Visual Studio 2010 Express for Windows Phone Beta
- Windows Phone Emulator Beta
- Silverlight for Windows Phone Beta
- Microsoft Expression Blend for Windows Phone Beta
- XNA Game Studio 4.0 Beta
Run the vm_web.exe to start the set up. 2. Once I got the tools, I had to think of the application idea that I wanted to work on, since this was my first app I decided to take a really simple app. The app basically shows up the various taxi services in Singapore and helps you directly dial the numbers without having to remember them when you need it. I find the concept very helpful when you are in rush and cant remember the numbers of the various taxi providers. 3. You can follow the following steps to recreate this app on your own: a) Open Visual studio 2010 Express for Windows Phone, click on New Project and select Silverlight for Windows Phone and Windows Phone Application(remember Silverlight and XNA are the two key technologies required to build apps for Windows Phone 7).
b) The project gets created with the skeleton Silverlight based-phone app content, like any Silverlight application, the code contains a mainpage.xaml file. For first timers to Silverlight, XAML is the markup language used to define the user interface of Silverlight apps. It has a .CS file associated with it that defines the server side code. XAML has various types of controls for you to use, one of which is the GRID control, think of it like the HTML




