Posted By Our Mentors
Amreen Khan
Android Developer
animesh bansal
iphone App Developer
Devendra chouksey
Android Developer
Dilip Saket
IOS apps developer
Hemraj Jhariya
iOS Developer
Jaihind singh Rajput
Smart Phone App Dev
Mujahid khan
Android developer
Narendra Yadav
android developer
Narinder Gupta
Mobile App Architect
Pradeep singh Thakur
Mobile App Architect
Sanjay Sharma
Andriod Developer
Shakti Rajpal
IT Architect
Soniya Vishwakarma
iPhone App Developer
Sunil Raghuwanshi
iPhone App Developer
Supriya Kapse
Senior developer
Getting started with Windows store apps Windows Phone
Getting started with Windows store apps development
Posted By: Supriya Kapse Date: 20 Dec 2013 View: 1063
      Rate This !!


Nowadays we have many windows phones in market which necessitates the development of applications for windows platform.

Windows provides a rich source of tools for application development. Windows apps can be run on all windows devices like phone, tablets, PCs and laptops.

 

To start with windows 8 development, we need following:

 

  1. Microsoft Visual Studio 2012 or above.
  2. Developer licence which is free
  3. For database requirements, one can use SQLite manager.

 

Windows store apps are created using Extensible Application Mark-up Language (XAML) with Microsoft Visual Basic or C#.

XAML provides a rich set of tools to develop a great UI. C#/VB can be used for backend logic development.

 

Creating UI:

To create a great UI you have to:

 

  1. Define layouts and navigation.
  2. Add controls and content.
  3. Add a splash screen where you can get basic data.
  4. Put animations in UI
  5. Add search functionality in your application.

 

Adding logic behind UI:

Backend logic should be developed in such a way that takes least the response time for any user request.

It may require web services’ output to display data.

Consumption of web services should be optimized to take minimal time and maximize output.

First Hello World Windows App:

Let us start with a simple “Hello World!!” app in windows 8:

 

  1. Launch Microsoft Visual Studio 2012.
  2. Go to file menu and select a new Project.
  3. It will show options for the type of project. Select Blank Page (XAML) project.
  4. This will open a new project. Open Mainpage.xaml file. It will have following code:

<Page

    x:Class="App1.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:local="using:App1"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    mc:Ignorable="d">

 

       <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

            </Grid>

</Page

5. Add below line in above grid section like this:

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <TextBlock x:Name="MyLabel" Text="Hello World!!" Foreground="White" FontSize="55" HorizontalAlignment="Center" Height="50"/>

</Grid>

 

This means you added a lable named “MyLabel” having text as “Hello World” which will be displayed on device.

6. Now go to Build menu and select Build Solution.

7. Then click on simulator

8. You have created your first windows app. You will see your message "Hello World!!" on the black screen on simulator.

 


Posted Queries