This post is for those who are new to window phone 7 development. Recently I’ve created my first simple application using silverlight for Windows phone 7. Sharing the Getting started steps.
Firstly Download and install the Window phone SDK 7.1 (Mango) Beta2 package from below links. This is the latest release, 29th June 2011 and is packed with all necessary component to develop windows phone 7 application. You can download the setup with offline installer or online web installer. Below are the links:
- Download Web Installer of Windows Phone 7.1 Beta 2 SDK (3.0 MB)
- Download Offline/Standalone Installer of Windows Phone 7.1 Beta 2 SDK (723 MB)
Windows Phone 7.1 SDK Beta 2 includes the following items:
- Windows Phone SDK 7.1 Beta 2
- Windows Phone Emulator Beta 2
- Windows Phone SDK 7.1 Assemblies Beta 2
- Windows Phone SDK 7.1 Extensions for XNA Game Studio 4.0
- Microsoft Expression Blend SDK Preview for Windows Phone 7.1
- WCF Data Services Client for Window Phone 7.1
- Microsoft Advertising SDK for Windows Phone 7
- Silverlight 4 SDK and DRT
Once you done with the installation just Launch the visual studio. Follow the steps to create the Window phone Silverlight project.
- Go to File-> New –> Project
- select the “Silverlight for Window Phone” Template category and choose “Window Phone Application”
3. Now select the Window phone platform choose 7.1
Now after clicking OK the visual studio will open the default XAML file with the Emulator UI
Edit the markup and design a proper Form by giving the title and application name. And add a TextBlock, TextBox, Button and ListBox from the toolbox.
Now if you go to design mode you’ll how the design will look
Now simply double click on Button and it’ll take you to the C# code event handler of button click event no surprise as usual. Write some code like below in the button click event handler:
Now Run the application and visual studio will automatically build the application and install it inside the simulator. This feature is provided in SDK that you can run multiple instance of visual studio against the single Emulator.
Input some values in the textbox and press Add button:
Ohh la la.. Before you go to create some meaningful application I hope this would raise some confidence in you ;).