windows phone intro om windows phone, oplev telefonerne, downloads

23
Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads http://www.microsoft.com/windowsmobile/da-dk/de fault.mspx

Upload: gannon-raine

Post on 02-Apr-2015

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone

Intro

Om Windows Phone, Oplev telefonerne, Downloadshttp://www.microsoft.com/windowsmobile/da-dk/default.mspx

Page 2: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Om Windows Phone 7 telefonerne

Flere links om Windows Phone 7 telefonerne:• Om Windows Phone, Oplev telefonerne, Downloads

http://www.microsoft.com/windowsmobile/da-dk/default.mspx

• YouTube - Windows Phone 7 Technical Preview• YouTube - Windows Phone 7 Technical Review full walkthrough 

(ingen lyd, men giver indtryk af navigation)• Windows Phone 7 review -- Engadget• Windows Phone 7 Overview  (nok en overdrivelse)• Microsoft Visual Studio 2010 Express for Windows Phone• Appendix B - Silverlight and XNA in Windows Phone 7

Page 3: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone udvikling

Der er 2 muligheder:

• Silverlight for Windows phone– ”Alm.” Apps (event drevet)– XAML (eXtencible Avalon Markup language) som

Windows Presentation Foundation (WPF), der erstatter Winform projekter

• XNAPrimært spil (game loop)

Page 4: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Silverlight / XNA

Platform features Windows Phone application(Silverlight-based application model)

Windows Phone game(XNA Framework application model)

Application programming model Event-driven application model that is ideal for mainly user interface (UI)–based applications

Traditional frame loop for a more simulation-based experience and content.

Control-based, data-bound UI development UIElement and related types None, developers must write their own.

Video playback Rich video integration via MediaElement Full-screen playback via the system media player.

2-D graphics Rich paths, shapes, brushes, and more High performance 2-D rendering for a large number of sprites.

3-D graphics Perspective effects using PlaneProjection transform Provides hardware-accelerated 3-D APIs.

Primary data serialization model XAML (eXtencible Avalon Markup language) Content manager.

Designer tooling Microsoft® Expression Blend® design software, Microsoft Visual Studio® XAML designer

XNA Content Pipeline integrates third-party tools for creating 3-D model and texture assets for the application.

Device sensors Same API in both programming models.

Access to user’s songs and pictures Same API in both programming models.

Summary of the Basic Differences

Page 5: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Design Resources for Windows Phone

Application Bar Icons for Windows Phone 7These icons are now installed locally as a part of the Windows Phone Developer Tools. You can find these icons on your computer after you have installed Windows Phone Developer Tools at the following locations: 32-bit computers - C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Icons64-bit computers - C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Icons

UI Design and Interaction Guide for Windows Phone 7Windows Phone introduces a touch user interface (UI) based on a design system codenamed Metro. This guide provides detailed information about UI elements and controls, UI system behaviors, and the interaction model for the touch interface. Designers and developers should read this guide to learn the dos and don’ts of UI implementations for their Windows Phone applications.

Microsoft Expression Blend for Windows PhoneExpression Blend for Windows Phone is installed as a stand-alone application with the Windows Phone Developer Tools and enables you to create Windows Phone applications using built-in templates. These templates enable you to preview application styles, set the theme, customize the application bar, define page navigation, optimize text input scopes, and select keyboards.

Design Templates for Windows Phone 7A collection of 28 layered Photoshop template files that can be used to create pixel-perfect application layouts, to help guide UI development, or to pitch an idea. These design templates showcase many controls that are a part of the Windows Phone Developer Tools. They also include examples of controls that are a part of Windows Phone, but are not available as a part of the Windows Phone Developer Tools. These additional templates are included to help designers and developers maintain a consistent look and feel across applications for system controls that developers wish to mimic.

http://msdn.microsoft.com/en-us/library/ff637515(v=VS.92).aspx

Page 6: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Om Windows Phone udviklingsværktøjer

Flere links om Windows Phone 7 udviklings værktøjer:

• Microsoft Visual Studio 2010 Express for Windows Phone• Appendix B - Silverlight and XNA in Windows Phone 7

• Brug af mere grafiske effekter med brug af Expression Blend 4 (tools der følger med installation)

• Expression Blend 4 for Windows Phone Beta Microsoft® Expression®

• Microsoft Showcase Expression Blend 4 for Windows Phone

Page 7: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)

Page 8: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)

Page 9: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)

Page 10: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)

Page 11: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Application Platform Overview for Windows Phone

http://msdn.microsoft.com/en-us/library/ff402531(v=VS.92).aspx

Page 12: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Application Platform Overview for Windows Phone Framework

http://msdn.microsoft.com/en-us/library/ff402531(v=VS.92).aspx

Page 13: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

frames and pageshttp://create.msdn.com/en-US/education/quickstarts/Navigation

The navigation experience in Windows Phone is similar to the navigation experience in Silverlight, but it has been extended to accommodate phone-specific features.

The navigation model in Windows Phone is based on one PhoneApplicationFramecontrol. PhoneApplicationFrame contains one or more PhoneApplicationPage controls that users can navigate through.PhoneApplicationFrame is the main navigation control and supports navigation to and from pages. PhoneApplicationPageencapsulates content that can be navigated to by PhoneApplicationFrame.

Page 14: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

navigating between pages

The easiest way to perform page navigation is by using a HyperlinkButton control. You can use its NavigationUri property to navigate to a page. The following example shows how to navigate to a page named SecondPage.xaml.XAML

<HyperlinkButton NavigateUri="SecondPage.xaml" />

If you don't want to use a HyperlinkButton, you can perform navigation by using the NavigationService class. This class contains several properties, methods, and events to help you with navigation.

You can use the NavigationService.Navigate method to navigate to a specific page.

http://create.msdn.com/en-US/education/quickstarts/Navigation

Page 15: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Sources of DataData can exist in several locations. For example, read-only data can be stored in a local file within your applications. User-specific data can be stored locally in an area called isolated storage. Data can be stored on the Internet, which can be accessed through web services.

http://create.msdn.com/en-US/education/quickstarts/Getting_Data_into_your_Windows_Phone_Applications

Page 16: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Windows Phone

Execution Model

Page 17: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

TerminologiTerm Definition

Tombstoning The procedure in which the operating system terminates an application’s process when the user navigates away from the application. The operating system maintains state information about the application. If the user navigates back to the application, the operating system restarts the application process and passes the state data back to the application.

Page state The visual state of an application page. This includes such things as the scroll position of a ScrollViewer control and the contents of TextBox controls. Manage page state in the OnNavigatedTo and OnNavigatedFrom event handlers.

Application state The state of the application that is not associated with a specific page. Application state is managed in the events exposed by the PhoneApplicationService class.

Persistent data Data that is shared by all instances of an application. Persistent data is saved and loaded from isolated storage. Application settings are an example of persistent data that should be preserved between application executions.

Transient state Data that describes the state of a single instance of an application. Transient data is stored in the State dictionary provided by the PhoneApplicationService class. A tombstoned application restores its transient state when it is activated. An example of transient state is the data returned by a Web service query. This can be stored when an application is tombstoned to reduce the need to perform the query again if the user quickly returns to the application.

Some of the terms that are used to describe the Windows Phone execution model.

 

http://create.msdn.com/en-US/education/quickstarts/Getting_Data_into_your_Windows_Phone_Applications

Page 18: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Execution Model Overview for Windows Phone

Life Cycle of an Applicationhttp://msdn.microsoft.com/en-us/library/ff817008(v=VS.92).aspx

Page 19: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Execution Model Overview for Windows Phone

Life Cycle of an Applicationhttp://msdn.microsoft.com/en-us/library/ff817008(v=VS.92).aspx

Page 20: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Application TombstonedWhat Causes an Application To Be Tombstoned?This section lists all of the actions that can cause an application to be deactivated and tombstoned.

User Actions•The following user actions may cause an application to be deactivated and tombstoned.•The user navigates away from your application by pressing the Start button.•The user stops interacting with the application and the phone’s lock screen engages. This behavior can be modified. For more information, see Idle Detection for Windows Phone.

Launchers and Choosers That Typically Do Not Cause an Application to be TombstonedIn order to improve performance around several common user scenarios, the following Launchers and Choosers will typically not cause your application to be tombstoned. However, it is still possible that your application will be tombstoned when using these, so your application should be designed to handle this possibility.

•PhotoChooserTask •CameraCaptureTask •MediaPlayerLauncher •EmailAddressChooserTask •PhoneNumberChooserTask •Multiplayer Game Invite (XNA)•Gamer You Card (XNA)

Page 21: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Execution Model Best Practices for Windows Phone

Se http://msdn.microsoft.com/en-us/library/ff817009(v=VS.92).aspx

Herunder hvordan man gemmer og reetablere state:•PhoneApplicationService.State•PhoneApplicationPage.State

Dictionary objekter som anvendes svarende lidt til Application og ViewState klasser i ASP.NET

Page 22: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Start på udviklingCentrale opstarts links for at komme igang:• Windows Phone development quickstarts

http://create.msdn.com/en-us/education/quickstarts

• Create Your First Silverlight Application for Windows Phonehttp://msdn.microsoft.com/en-us/library/ff402526(v=VS.92).aspx

• Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)http://msdn.microsoft.com/da-dk/gg241260

• Application Platform Overview for Windows Phonehttp://msdn.microsoft.com/en-us/library/ff402531(v=VS.92).aspx

• Windows Phone 7 Training Course http://msdn.microsoft.com/en-us/gg266499

Page 23: Windows Phone Intro Om Windows Phone, Oplev telefonerne, Downloads

Flere links om Windows Phone 7Silverlight udvikling

• App Hub - windows phone development quickstarts

• Windows Phone Development

• Windows Phone 7 in 7 Silverlight and Windows Phone 7 (Video intro)

• Windows Phone How Do I Videos MSDN

• Differences Between Silverlight and Silverlight for Windows Phone (Tekst)

• App Hub - getting data into your windows phone applications

• App Hub - navigation - silverlight quickstart for windows phone development

 

• Brugbar?? Getting Started with Silverlight and Windows Phone 7 Development