Build a "Hello World" Windows Phone 7 app
First, verify that you have installed the Windows Phone Developer tool CTP, which contains the Visual Studio Express Edition tool for Windows Phone development (which will be permanently free of charge for developing and building Windows phone 7 applications Tools), and the VS RC plug-ins that allow mobile phones to be developed in the VS 2010 full version.
After downloading and installing the Windows Phone Developer Tool CTP, start the Visual Studio 2010 shortcut for Windows Phone, or the VS RC version (if you already have it installed), and then select "File"-> "New Project". Here you will find a list of common project template types, as well as a new category: "Silverlight for Windows Phone." This first CTP version provides 2 application project templates, the first is the Windows Phone application template, which we will use in this example, and the second is the Windows Phone List application template, Provides the basic layout of master-slave mobile applications:
After you create a new project, you will get a design surface and logo. Note that the design surface shows the UI of your mobile phone, allowing you to easily see how your application will look when you develop it, as well as familiar toolbox, Solution Explorer, and property pages for people familiar with Visual Studio.
For our HelloWorld application, we first add a text box and a button from the toolbox, and note that you get the same design experience as Silverlight for the Web or desktop. You can easily resize, set and align your controls on the design surface, and use property pages to change properties. We'll change the name of the added text box to "username" and change the title of the page to "Hello World".