วันพุธที่ 9 พฤษภาคม พ.ศ. 2555

Project Templates for Windows Phone

Project Templates for Windows Phone

Visual Studio 2010 Express for Windows Phone and the Windows Phone Add-in for Visual Studio 2010 includes project templates created specifically for application development on Windows Phone. After you create a Windows Phone project, you can open the project in Visual Studio or in Expression Blend for Windows Phone.
To create a new application from a template, perform the following steps:
  1. In Visual Studio, on the File menu, click New Project.
  2. In the New Project dialog box, select either Visual C# or Visual Basic and then select Silverlight for Windows Phone or XNA Game Studio.
    You will see the list of project templates for developing Silverlight or XNA Framework applications for Windows Phone. The following image shows the Silverlight for Windows Phone project templates in C#.
    GetStartedNewProjectSilverlightXNA

The following sections describe the project templates that are included with Visual Studio 2010 Express for Windows Phone and with the Windows Phone Add-in for Visual Studio 2010. These templates are available for C# and Visual Basic.
The following table describes the project templates you can use to create Silverlight for Windows Phone applications.
TemplateDescription
Windows Phone ApplicationCreates a project that can be used as a starting point for any Silverlight for Windows Phone application. This template provides a simple one-page application that uses the PhoneApplicationPage and PhoneApplicationFrame elements.
Windows Phone Databound ApplicationCreates a project that uses the ListBox control and navigation features. In addition, this template creates an application using the Model-View-ViewModel design pattern. For more information, see Implementing the Model-View-ViewModel Pattern in a Windows Phone Application.
Windows Phone Class LibraryCreates a class library project that compiles as an assembly by default. This template has no UI elements and can be shared with other applications.
Windows Phone Panorama ApplicationCreates a project that uses a Panorama control that allows you to view controls, data, and services by using a long horizontal canvas that extends beyond the confines of the screen. For more information, see Panorama Control Overview for Windows Phone. For design recommendations on using Panorama, see the Design Resources for Windows Phone.
Windows Phone Pivot ApplicationCreates a project that uses a Pivot control to enable the you to switch between views or pages within the application. For more information, see Pivot Control Overview for Windows Phone. For design recommendations on using Pivot, see the Design Resources for Windows Phone.
Windows Phone Silverlight and XNA Application Creates a project that enables the rendering of Silverlight and XNA Framework content in the same application. For more information, see Using the Project Template that Combines Silverlight and XNA,
Windows Phone Audio Playback AgentCreates a class library project for adding a background agent to play audio files. This project type compiles as an assembly by default and can be referenced by Silverlight or XNA Framework application projects. For more information on using an audio playback agent, see How to: Play Background Audio for Windows Phone and Background Audio Overview for Windows Phone.
Windows Phone Audio Streaming AgentCreates a class library project for adding a background agent to play streaming audio files. This project type compiles as an assembly by default and can be referenced by Silverlight or XNA Framework application projects.
Windows Phone Scheduled Task AgentCreates a class library project for adding a background agent to perform a periodic or resource-intensive task. This project type compiles as an assembly by default and can be referenced by Silverlight or XNA Framework application projects. For more information on how to use scheduled tasks, see How to: Implement Background Agents for Windows Phone.
The following table describes the project templates you can use to create XNA for Windows Phone applications.
TemplateDescription
Windows Phone Game (4.0)Creates an XNA Framework project for a Windows Phone game. For more information about creating games for Windows Phone using XNA, see Developing Windows Phone Games.
Windows Phone Game Library (4.0)Creates an XNA Framework game library For more information about creating games for Windows Phone using XNA, see Developing Windows Phone Games.
Windows Phone Silverlight and XNA ApplicationCreates a project that enables the rendering of Silverlight and XNA Framework content in the same application. For more information, see Using the Project Template that Combines Silverlight and XNA.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น