Free Online Courses for Software Developers - MrBool
× Please, log in to give us a feedback. Click here to login
×

You must be logged to download. Click here to login

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

×

MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

Developing a Windows Phone 7 App - starting with the prerequisites

In this article we will see some pre-requisites for create an Windows Phone 7 app and how we can alter the application name and label of the page that already exists.

Every developer will need to embrace the fact that the mobile generation is here now and this seems to be the new skill set nowadays. The question is how does a novice to mobile applications get to start with mobile software development? In case you are already equipped with building mobile applications on one platform, learn the process of building an application on another one. Let us develop first Windows Phone 7 application from start to finish.

The article here in is will make you understand on the pre-requisites that should be met before you start developing applications for the Windows Phone 7 platform. Irrespective of how long you have been in the journey of mobile application development or you are just eager to know what developing an application on the Windows Phone 7 platform is like, this article has everything for you. The first step is to download the tools that are required to build Windows Phone 7 applications. The next step would be to jump straight into code and develop a simple functional application.

Downloading the tools

Before you start developing your first windows 7 phone application, the need is to start download and install several tools. The below listed tools will help you to speed up the development process.

  • Windows Phone Software Development Kit (SDK) 7.1: The tool helps you to develop applications and games for Windows Phone 7 devices. Along with the download, one can also install Visual Studio 2010 Express (the IDE) that comprises of application templates for phone projects in addition to productivity enhancements. This could be app profiler and an improved emulator.
  • Windows Phone SDK Documentation: The time when you will be building Windows Phone apps, you would need to reference pages from this site more often than not. It consists of documentation for the complete API in addition to lot of sample code.
  • Code Samples for Windows Phone: Now when we have the tools and documentation, the next step is to download some of the sample applications. The page comprised of all of the sample applications that is provided by Microsoft. For the reason that it is broken down by features, the page can be found easily and quickly using the same.

Our first Windows Phone application

We find Twitter everywhere these days- A new “Hello World” project for people learning a new platform with a good reason. The need is to be equipped with some sort of input control, event and error handling, web request and responses to formatting the data appropriately in your application. Therefore in this app, let us build a Twitter application that would permit the user to input a Twitter username and fetch the tweets in a simple and easy to read format.

Construction begins

The time has come to construct our first project when we have all the tools downloaded and installed. You need to open Visual Studio and select File -> New Project. Expand the Visual C# templates and select Silverlight for Windows Phone. Now select Windows Phone Application and give it any name.


Now, click OK and you will get to see the following dialog box:


You will get to see two options here- Windows Phone OS7.1 and Windows Phone OS7.0

  • Windows Phone OS 7.1: This operating system is used for Mango applications and comprises of an additional set of APIs for working with the Windows Phone. You will get to see this option as the default one and should be used for building new applications.
  • Windows Phone OS 7.0: This is used for the original version of the Windows Phone OS and required to be used only in rare cases.

Let’s go ahead and select Windows Phone OS 7.1 and select OK.


The above screen will be displayed once Visual Studio 2010 loads up.

  1. The Toolbox encloses Windows Phone Controls that can be added to the application such as TextBox, Buttons, Images and more.
  2. The Design View exhibits the real-time look of your Windows Phone 7 application as you build the application.
  3. The XAML View shows the current XAML that lands the user to the screen shown above.
  4. The Solution Explorer Window consists of all of the files that completes up your application and usually includes images and project files.
  5. The Properties Window permits the user to alter few attributes of the controls that are added to the phone application.

Alter the existing app name and label of the page

The very first thing that needs to be altered is the default Application Name and label of the page. One needs to steer inside of the MainPage.xaml as shown in figure above and alter the text attributes of each of the textbox as can be seen below:

<!--TitlePanel consistsof theapplication name and label of the page-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="ApplicationTitle" Text="MY TWITTER LOOKUP" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="PageTitle" Text="enter user" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>

Looking at the designer window will make you land at the following figure:


Conclusion

This article focuses on the pre-requisites required to develop a Windows 7 Phone application and how we can alter the application name and label of the page that already exists.



I am a software developer from India with hands on experience on java, html for over 5 years.

What did you think of this post?
Services
[Close]
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 0,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!


> More info about MrBool Credits
[Close]
You must be logged to download.

Click here to login