16
“Discover Windows Phone” development series Yasmine Abdelhady @yasabdelhady [email protected] 01. Project Templates © Yasmine Abdelhady| MEA DPE Intern

"Discover windows phone" 01. Project Template

Embed Size (px)

DESCRIPTION

To know more about windows phone development checkout this: http://yasabdelhady.wordpress.com/2014/01/27/01-project-template/

Citation preview

Page 1: "Discover windows phone"  01. Project Template

“Discover Windows Phone” development series

Yasmine Abdelhady

@yasabdelhady

[email protected]

01. Project Templates

© Yasmine Abdelhady| MEA DPE Intern

Page 2: "Discover windows phone"  01. Project Template

Agenda

Create New Blank App

Designer vs XAML pane

Solution Explorer components

© Yasmine Abdelhady| MEA DPE Intern

Page 3: "Discover windows phone"  01. Project Template

Create New Blank App

Windows Phone Application:1. Open Visual Studio 20132. File> New Project3. Under Visual C#>Choose Windows Phone> Windows Phone Application

© Yasmine Abdelhady| MEA DPE Intern

Page 4: "Discover windows phone"  01. Project Template

© Yasmine Abdelhady| MEA DPE Intern

Page 5: "Discover windows phone"  01. Project Template

Designer Pane XAML Pane

Page 6: "Discover windows phone"  01. Project Template

Solution Explorer

Lets take a look at the Solution Explorer for a default project and see what does it contain and the purpose of each.

Page 7: "Discover windows phone"  01. Project Template

Solution Explorer Components

AppManifest.xmlA simple application manifest file that is required to generate the application package (XAP) for store submission.

Page 8: "Discover windows phone"  01. Project Template

Solution Explorer Components

AssemblyInfo.csAnother configuration file that contains the name and version metadata ,including the copyrights, that is embedded into the generated assembly file.

Page 9: "Discover windows phone"  01. Project Template

Solution Explorer Components

WMAppManifest.xmlAnother metadata field that contains application specific data that are categorized into four parts1. Application UI; Display Name, description, app icon, first page to navigate to, etc.2. Capabilities; this is where you tell the device that you will use capabilities like accessing user's contacts or using location services, etc.3. Requirements; This part is where you specify some hardware requirements needed to run the application, like NFC.4. Packaging; this is where to specify some data about the packaging file, like author, version, publisher, etc.

Page 10: "Discover windows phone"  01. Project Template

Solution Explorer Components

ApplicationIcon.pngReplace this image with the one you want to represent your application on the phone.  This is what the users will see when they see your application on their phone.  Make it count.

Page 11: "Discover windows phone"  01. Project Template

Solution Explorer Components

AppResources.resxFor localizing the applicartion, basically you need to separate localizable resources from the rest of the code by creating language-specific resource files. Visual Studio uses these files to create assemblies that allow your application to support many languages.

Page 12: "Discover windows phone"  01. Project Template

Solution Explorer Components

App.xamlIt is where you keep universal data and settings for your entire application.  You can also keep my style data in this file as well, but it’s not required to do so.

Page 13: "Discover windows phone"  01. Project Template

Solution Explorer Components

App.xaml.csThe code-behind for App.xaml (any .xaml file has a .cs file for the code behind), this is where you will handle the back-end of your application.  

Page 14: "Discover windows phone"  01. Project Template

Solution Explorer Components

MainPage.xamlYour first application page (unless you change it in WMAppManifest.xml). Don't make it the only page in the application. The phone handles forward and backward navigation very well, and you should not bury all of your application's functionalities on one xaml file.

Page 15: "Discover windows phone"  01. Project Template

Solution Explorer Components

MainPage.xaml.csThe code-behind for the MainPage.xaml file.  When you need to make things happen in code, this is where you’ll generally write it.  Interacting with the objects on the XAML file is almost always a necessity.

Page 16: "Discover windows phone"  01. Project Template

Thank you

@yasabdelhady

[email protected]

yasabdelhady.wordpress.com

Facebook.com/yasabdelhady