Subscribe to Subscribers

Online Members

Kapil
More...

Resources » .NET programming » Silverlight

Introduction To Windows Phone 7 Project Structure - [Part-2]


Posted Date:     Category: Silverlight    
Author: Member Level: Gold    Points: 60


In this article, I will explain the silverlight project structure for Windows Phone 7. This explanation will help developer to get basic information of windows phone 7 application development.



In this article I am going to describe Silverlight Windows Phone7 project structure. Let me introduce, basic information about the Silverlight project for Windows Phone 7.

Let’s get familiar with Silverlight

Why Silverlight for Windows Phone 7?
Silverlight is the application development platform for Windows Phone7, it supports core Silverlight capabilities in managed .NET code with XAML including: vector and bitmap graphics and animation, high quality video and audio streaming. In Windows Phone7 Silverlight we can also access the unique capabilities for Phone like telephone functionality, camera, multi-touch, location awareness, smooth navigation and so many compiling UI features. High performance gaming is also supported through the XNA Framework.

What is XAML?
XAML is (pronounced "zammel") standard for eXtended Application Markup Language. XAML is an XML file, which follows the basic rules of XML. In Silverlight, XAML is used to design user interfaces and animations.
Understand the Silverlight project structure for Windows Phone7.
A Silverlight Windows Phone 7 project contains various configuration, assembly references, and code files

1) App.xaml
2) MainPage.xaml
3) ApplicationIcon.png
4) Background.png
5) SplashScreenImage.png

Let us have a glance at the Silverlight Windows Phone 7 project files.

1- App.xaml
App.xaml file is the application starting point, which loads the entire Silverlight application. Here we can declare shared resources, brushes, various style objects, styles, templates etc. which will be accessible in the application. The App.xaml.cs file used to handle global application level events like Application_Launching, Application_Activated, Application_Deactivated, Application_Closing, RootFrame_NavigationFailed and Application_UnhandledException. The App.xaml.cs class derives from Application class.

2-MainPage.xaml
The “MainPage.xaml” is default page with some UI element. It is actually a startup UI for Silverlight application in Windows Phone 7. Here we can use the Silverlight controls for developing user interface with different layouts. The MainPage.xaml.cs file is a code-behind for the main page of an application. The MainPage class derives from PhoneApplicationPage class.

3-ApplicationIcon.png
As name itself suggests, it is application icon. That icon will appear in the list of applications on the phone. This is created by default in WP7 project. Developer can change PNG image as per his/her requirement. ApplicationIcon.png is 62 x 62 pixels with 72 pixels / inch resolution.

4-Background.png
This is also an icon image; this image is displayed when the application is "pinned" to the Start screen of Windows Phone. It has 173x173pixels. In addition to pin the application onto Start screen of Windows Phone, click on the application icon and hold it, then select the "pin to start" option. The Background.png image will now appear on the Start screen.


5-SplashScreenImage.png
A splash screen is an image that appears while a program/application is loading. It also describes the introduction of application.

Note: These three (ApplicationIcon.png, Background.png, SplashScreenImage.png) files property, by default set as Build Action - "Content" AND the copy to Output Directory be set to "Copy if newer".

In Silverlight WP7 Deployment File is called .XAP file which is the compressed output of the Silverlight Application which includes application manifest file, compiled output assembly and other resources used by your Silverlight WP7 application. I will explain how to deploy WP7 application in Windows Phone 7 Emulator or device. We will discuss later about deployment in this series.

Thank you!

Attachments
  • Introduction To WP7 Project Structure (41582-141223-Part-2.pdf)




  • Read related articles: Windows Phone 7    


    Did you like this resource? Share it with your friends and show your love!


    Responses to "Introduction To Windows Phone 7 Project Structure - [Part-2]"
    Author: saritagupta    14 Feb 2011Member Level: Bronze   Points : 1
    Hi Pavan ,

    Nice explanation on Why Silverlight for Windows Phone 7 and What is XAML?
    Great post.
    keep on posting :)
    thanks.



    Author: SethuRaman    13 Apr 2011Member Level: Gold   Points : 1
    Hi pavan

    Really a nice ariticle regarding windows phone 7 .

    Keep posting more article regarding various .



    Author: Sunil Chugh    19 May 2011Member Level: Bronze   Points : 0
    Nice Article on Windows Phone 7..


    Author: Ultimaterengan    05 Nov 2011Member Level: Gold   Points : 0
    Dear friend,
    This is really very nice Article....

    Thanks and keep contributing....



    Feedbacks      

    Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Getting started with Windows Phone 7 - [Part-1]
    Previous Resource: Learn Silverlight for Windows Phone 7 - [Part-3]
    Return to Resources
    Post New Resource
    Category: Silverlight


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Windows Phone 7 Project Structure  .  

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.