Android to Windows Phone 8 Part 2: Creating Your First Windows Phone Project
Join the DZone community and get the full member experience.Join For Free
over the past several weeks i’ve been working on some content i’m excited to finally share with you through a series of blog posts.
this series will introduce you to windows phone 8 development from an android developer’s perspective. through the course of the series you’ll create your first app. it won’t be anything pretty, but you’ll learn the ins and outs of the development environment, how to create a simple user interface, and how to perform navigation.
along the way you’ll see some
that will help make it easier for you to transition your existing skills to the windows phone platform. you’ll also see some
visual studio tips
to make you more productive in your development environment. good luck!
in the last lesson you set up your development environment which included installing visual studio. in visual studio, you create apps for windows phone by creating a windows phone project. the windows phone project contains all the files that comprise the source code for your app. visual studio makes it incredibly easy to start a new project with a set of default files and directories.
the windows phone project template in visual studio is similar to the android application project template that is added to eclipse when you install the adt plugin.
in this lesson you’ll learn how to create your first windows phone project.
- open visual studio 2012 express for windows phone .
in the toolbar.
in the window that appears select installed > templates > visual c# > windows phone .
- select the windows phone app template.
- enter a name for your project. this is the name of your project directory and the name visible in visual studio’s solution explorer.
solution explorer is similar to package explorer in eclipse.
select a location for your project. this is where your source files will be stored on your local disk.
this is similar to a workspace used by eclipse.
enter a solution name . solutions are how visual studio organizes multiple projects. be default visual studio will use your project’s name as the solution name.
click ok .
you’ll then be prompted to select which windows phone platform you want to target.
select windows phone os 8.0 and click ok .
you may have noticed that visual studio has quite a few project templates for you to select from. here’s a brief description of each template:
- windows phone app – a project for creating a windows phone application.
- windows phone databound app – a project for creating a windows phone application using list and navigation controls with a basic model-view-viewmodel architecture.
- windows phone class library – a reusable library for windows phone applications.
- windows phone panorama app – a project for creating a windows phone application using the panorama control.
- windows phone pivot app – a project for creating a windows phone application using the pivot control.
- windows phone xaml and direct3d app – a project for creating a windows phone managed application with native components.
- windows phone xaml and xna app – a project for creating a windows phone xaml application capable of rendering graphics using the xna framework.
- windows phone html5 app – a project for creating a windows phone app that uses primarily html content.
- windows phone audio playback agent – a class library project for creating a background agent to play audio.
- windows phone audio streaming agent – a class library project for creating a background agent to stream audio.
windows phone scheduled task agent – a class library project for creating a background agent to perform a periodic or resource intensive task.
your windows phone project is now set up with some default files and you’re ready to being building your app. in the next lesson you’ll spend some time exploring the project you just created.
previous posts in this series
- setting up the development environment
- getting started
- developing apps
- testing apps
- monetizing apps
- concepts and architecture
- windows phone api reference
Published at DZone with permission of Adam Grocholski, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.