DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Real World Windows Phone Dev Part 2: File - New Project

Real World Windows Phone Dev Part 2: File - New Project

Matt Hidinger user avatar by
Matt Hidinger
·
Dec. 20, 11 · Mobile Zone · Interview
Like (0)
Save
Tweet
3.50K Views

Join the DZone community and get the full member experience.

Join For Free

This series is going to walk through building a polished, functioning Windows Phone app from start to finish. The app is called Realworld Stocks and the full source code will be available on CodePlex as the series progresses. I’ll be using Mercurial to encourage forking and maybe even pull requests from developers who want to contribute their own real-world solutions.

Make sure you DOWNLOAD the Windows Phone 7.5 SDK

View the Series Introduction and Outline


Before you begin, install NuGet!

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio. It can be installed directly from within Visual Studio and only takes a minute.

In Visual Studio: Tools –> Extension Manager and find NuGet

image

 

Defining our Solution Structure

imageFor our solution we are going to create 3 Client-side projects and 1 Server-side project. These projects are described below. The Solution Explorer to the right should help give you a sense of how our solution will start to develop, but for now, let’s just get the basics running.

Creating the Windows Phone Projects

RealWorldStocks.Client.Core

Windows Phone Class Library

This project contains all of our core (non-UI) client-side functionality: Data Models, Helpers, HTTP Web Service clients, etc

 

RealWorldStocks.Client.UI

Windows Phone Application

References RealWorldStocks.Client.Core

This project holds all UI-specific functionality for our application: Assets, Styles, ViewModels, Views (Pages and UserControls), etc

 

RealWorldStocks.Client.BackgroundAgent

Windows Phone Scheduled Task Agent

References RealWorldStocks.Client.Core

The periodic task project that will eventually update our Live Tiles in the background every 30 minutes

 

Creating the Backend Services

RealWorldStocks.Web

ASP.NET MVC 2 Application

This project exposes our server side endpoints. I chose MVC for service simplicity; it’s very easy to create HTTP GET Routes with query string model binding and returning JSON out of the box.

 

Run it!

At this point we can F5 our project and marvel at our progress! In the next part we will start giving it some signs of life.



Source:  http://www.matthidinger.com/archive/2011/10/16/RealWorldWPDev-Part-2-File-ndashgt-New-Project.aspx
Windows Phone dev

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What's the Difference Between Static Class vs. Singleton Patterns in C#?
  • How to Build Microservices With Node.js
  • Five Tips to Fasten Your Skewed Joins in Apache Spark
  • Event-Driven Microservices?

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo