Content by Category
.NET 1.x
.NET 2.0
.NET 3.0
.NET 3.5
.NET 4.0
.NET 4.5
.NET Assemblies
.NET Framework
.NET Getting Started
Accessibility
ADO.NET
Advertorials
Agile Development
AJAX
Amazon Web Services
Analysis Services
Android
Architecture
Arduino
ASP .NET Web API
ASP.NET
ASP.NET MVC
ASP.NET WebForms
Azure
B2B (Business Integration)
BDD
Big Data
Bing
BizTalk
Book Excerpts
Build and Deploy
Business Intelligence
C#
C++
ClickOnce
Cloud Computing
Code Contracts
CODE Framework Info - non Technical
CODE on the Road!
COM+
Community
Conferences
Continuous Integration
Crystal Reports
CSLA.NET
CSS
Data
Debugger
Design Patterns
Development Process
Display Technologies
Distributed Computing
Document Database
DotNetNuke
DSL
Dynamic Languages
Dynamic Programming
Editorials
Enterprise Services ("COM+")
Entity Framework
Events
Expression Blend
F#
Fox to Fox
Frameworks
Functional Programming
Git
Graphics
HTML 5
Internet Explorer 8.0
Interviews
IOS
iPhone
Iron Ruby
Java
Java Script
JavaScript
jQuery
JSON
Lightswitch
LINQ
Linux
LUA
Mac OS X
MDX
Messaging
Metro
Microsoft Application Blocks
Microsoft Business Rules Framework
Microsoft Dynamics
Microsoft Expression
Microsoft Office
Mobile Development
Mobile PC
Mono
MsBuild
MVVM
MySQL
Network
NHibernate
node.js
NOSQL
Nuget
Object Oriented Development
Objective C
Odata
OLAP
Open Source
Opinion
Opinions
Oracle
ORM
Other Languages
Parallel Programming
Patterns
PHP
Podcasts
Post Mortem
PowerPoint
Print/Output
Prism
Product News
Product Reviews
Project Management
Prolog
Python
Q&A
Rails
Rake
Razor
Reporting Services
REST
RIA Services
Ruby
Ruby on Rails
Scheme
Search
Security
Services
SharePoint
SignalR
Silverlight
SOA
Social Networks
Software & Law
Software Business
Source Control
Speech-Enabled Applications
SQL Server
SQL Server 2000
SQL Server 2005
SQL Server 2008
SQL Server 2012
SQL Server CE/AnyWhere/Mobile/Compact
SSIS
Subversion
Sync Framework
Tablet PC
TDD
Team System
Techniques
Testing and Quality Control
TFS
Tips
TypeScript
UI Design
UML
User Groups
VB Script
VB.NET
Version Control
VFP and .NET
VFP and SQL Server
Virtual Earth
Vista
Visual Basic
Visual Basic 6 (and older)
Visual FoxPro
Visual Studio .NET
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Visual Studio 2011
Visual Studio 2012
Visual Studio Tools for Office
VSX
WCF
Web Development (general)
Web Services
WebMatrix
WF
Whitepapers
Windows 7
Windows 8
Windows Azure
Windows Live
Windows Phone 7
Windows Phone SDK
Windows Server
Windows Vista
WinForms
WinRT
Workflow
WPF
XAML
Xiine Documentation
XML
XNA
XSLT



LearnNow


XAMALOT
 


SSWUG

Reader rating:
Article source: CoDe (2013 Mar/Apr)


Article Pages:  1  2 3 - Next >


An Overview of the Windows Phone 8 SDK

It didn’t take long after the introduction of Windows Runtime (WinRT, the set of APIs that allow Windows Store apps to communicate with the Windows 8 operating system), for Microsoft to unveil the next generation of its mobile operating system, Windows Phone 8, which conveniently includes some of the APIs coming directly from WinRT. It’s easy to imagine the APIs merging together at some point, as that would make writing applications for on-the-go devices such as tablets and mobile phones much easier.

"
It’s easy to imagine the APIs merging together at some point, as that would make writing applications for on-the-go devices such as tablets and mobile phones much easier.
"

This article discusses the improvements in the new Windows Phone 8 SDK, walks through the requirements to build an app on this new platform, and explores several great new features in this platform.

Three New Features in Windows Phone 8 SDK

I think it’s important to lay a solid foundation by understanding several new features included in the SDK before digging into the bits and writing code. Some of these features include

  • New tile sizes and templates that let your app use the new small and wide tile sizes along with a couple of new templates
  • A lock-screen background image provider and the ability to choose to add your app to the lock screen notification area
  • Advancements in speech recognition that make the app read text to you as well as understand text that you speak to it

I have specifically targeted these three features as demos, as I’m sure you want practical examples that you can use in your next real-world app. This article barely scratches the surface of what is included in the Windows Phone 8 SDK. For a comprehensive list, please visit http://msdn.microsoft.com/library/windowsphone/develop/jj206940(v=vs.105).aspx

Getting Your Development Environment Up and Running

Before getting started, you need to download the following items:

After you grab the necessary files, it’s worth noting that the processor must support “Second Level Address Translation” (SLAT) and Hyper-V needs to be turned on. If your processor does not support SLAT, you won’t be able to run the emulator. You can, however, deploy it to a physical device.

If you have a Windows Phone 8 device, you no longer have to install additional software (like Zune) to register it. Just plug your Windows Phone 8 device into an available USB port and open the Windows Phone Developer Registration program. You can find this application after you have installed the Windows Phone 8 SDK. You’ll need to enter a valid username and password that’s associated with your Windows Phone developer account. After this is complete, your phone is unlocked and you can deploy or sideload applications to it.

Windows Phone 8 Templates in Visual Studio 2012

Now that you have the necessary tools to begin building a Windows Phone 8 app, let’s begin by launching Visual Studio 2012 from the Start Screen and selecting Templates ->“Visual C# -> Windows Phone as shown in Figure 1. Please note the two highlighted templates, as I will discuss them shortly.

Click for a larger version of this image.

Figure 1: These are the default templates for a Windows Phone app.

The templates that ship in the box are:

  • Windows Phone App: A project for creating a basic Windows Phone application
  • Windows Phone Databound App: A project for creating a Windows Phone application that uses list and navigation controls with a basic Model-View-ViewModel architecture
  • Windows Phone Class Library: A project for creating a Windows Phone class library
  • Windows Phone Panorama App: A project for creating a Windows Phone application that uses the Panorama control. The Panorama control is a long horizontal canvas that extends beyond a single screen.
  • Windows Phone Pivot App: A project for creating a Windows Phone application that uses the Pivot control. The Pivot control lets you switch between views or pages within the app.
  • Windows Phone XAML and Direct3D App (8.0 SDK Only): A project for creating a Windows Phone managed application with native components
  • Windows Phone XAML and XNA App (7.1 SDK Only): A project for creating a Windows Phone XAML application that’s capable of rendering graphics using the XNA Framework
  • Windows Phone HTML5 App: A project for creating a Windows Phone application 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

As you can see in Figure 1, only two new templates are provided with the SDK: Windows Phone XAML and Direct3D App and Windows Phone HTML5 App. In both templates, you can see that Microsoft added support for native code. The Windows Phone XAML and Direct3D App template comes with two projects upon first launch; the Windows Phone 8 project and a native (C++) app. What makes this interesting is that you can now reuse a majority of native code that was written ages ago, which will prove especially meaningful for those wanting to port games over to Windows Phone 8 without converting it to managed code, like C# or Visual Basic (VB).

"
What makes this interesting is that you can now reuse a majority of native code that was written ages ago, which will prove especially meaningful for those wanting to port games over to Windows Phone 8 without converting it to managed code, like C# or Visual Basic (VB).
"

The Windows Phone HTML5 App template is a WebBrowser control hosted in an XAML page. The template comes with an HTML folder to display HTML5 content, complete with an index.html and style sheet that resembles the native look and feel of the Windows Phone OS. This template has no relation to WinJS that Windows Store app developers are used to.

&

By: Michael Crump

Michael Crump is a Microsoft MVP, INETA Community Champion, and an author of several .NET Framework eBooks. He speaks at a variety of conferences and has written dozens of articles on .NET development. He currently works at Telerik with a focus on their XAML control suite.

mbcrump29@gmail.com



Article Pages:  1  2 3 - Next Page: 'Emulator Options' >>

Page 1: An Overview of the Windows Phone 8 SDK
Page 2: Emulator Options
Page 3: Lock Screens and Notifications

How would you rate the quality of this article?
1 2 3 4 5
Poor      Outstanding

Tell us why you rated the content this way. (optional)

Average rating:
5 out of 5

2 people have rated this article.

Instantly Search Terabytes Of Text
“Lightning Fast”
– Redmond Mag
“Covers all data
sources” – eWeek
25+ fielded & full-text search options
dtSearch’s own document filters highlight hits in popular file types
Web Spider supports static & dynamic data
APIs for .NET, Java, C++, SQL, etc.
Win / Linux (64-bit & 32-bit)
www.dtSearch.com
 

      LearnNow

 

SSWUG