41
Windows Phone Osez franchir le cap !

Build your wp8 app today

  • Upload
    jalpf

  • View
    1.599

  • Download
    0

Embed Size (px)

DESCRIPTION

A short 45min talk about why and how getting started and build your Windows Phone 8 app today.

Citation preview

Page 1: Build your wp8 app today

Windows Phone

Osez franchir le cap !

Page 2: Build your wp8 app today

Windows Phone ?Once upon a time…

Page 3: Build your wp8 app today
Page 4: Build your wp8 app today

ModernUI (Metro) everywhere

Page 5: Build your wp8 app today

Flash back

WM6.5 WP7.0WP7.0.

x (Nodo)

WP7.1 (Mango

)

WP7.1 (Tango)

WP8.0 (Apollo)

WP8 GDR2

WP8 GDR3 WP8.1

« We screwed up WM6.5 »(Steve Ballmer)

Septembre 09

Octobre 10

Mars 11

Septembre 11

Juin 12

Octobre 12

WP7.8

Août 13

Novembre 13

2014

Page 6: Build your wp8 app today

Fresh news

Page 7: Build your wp8 app today

Hi, I’m JeremyBefore the fun begins

Page 8: Build your wp8 app today

Introduction

Jérémy Alles

MVP / WPF Disciples

[email protected]

@jalpf

www.japf.fr

A fast and fluid todo list

Windows Phone + Windows 8

Sync in the cloud

2day-app.com

Page 9: Build your wp8 app today

45min for an overview of Windows Phone development ?

Design Principles XAML

Files and Storage

C#

Native Code Reuse

App Model

Application LifecycleBackground Agents

Live Tiles

Lock Screen and Notifications

Lock Screen Wallpaper

Push Notifications

DirectX Interop

WebBrowser

App to App Communication

HTTP NetworkingSockets

Bluetooth

Proximity

Speech

MapsLocation

Wallet

In-App Purchase

Trial

DevCenterEnterprise

Background Audio

VoIP

Video

CompassCamera

Lenses

File Associations

Controls

Launchers & Choosers

Data

Hubs

Pages & Navigation

C++

VB.NET

Page 10: Build your wp8 app today

What about you ?“Who are you people ?”

Page 11: Build your wp8 app today

Agenda

Getting startedDev platformUI platformLive tiles & lockscreenMonetizationBuilding for both screensMiscConclusion

Page 12: Build your wp8 app today

Ready, go ?WindowsPhone.exe

Page 13: Build your wp8 app today

Dev Centerhttp://developer.windowsphone.com

Dev Center Registratio

n

US $19

Page 14: Build your wp8 app today

Tools

What you need ?Visual Studio 2012Visual Studio 2013

FREE edition available !

To use the emulator ?An Hyper-V capable hardware

To deploy on a device ?A developer account (19$)Or an App Studio account (free)

Page 15: Build your wp8 app today

Demo: First WP app from VS2013Project New Debug Start Debugging !

Page 16: Build your wp8 app today

Windows Phone Dev PlatformC# + XAML = Love

Page 17: Build your wp8 app today

Platform options

XAML + Managed Code (C# or VB)

DirectX + Native Code (C or C++)

Mix of bothReuse existing native librariesAdd 3D vizualization to a XAML app

Page 18: Build your wp8 app today

C#

Static typing

MSIL

C#

Partial types

Nullable typesObject initializers

Linq

Async

Compiler as service

Await

Events

DynamicVar

Iterators

Auto properties

Covariance

Lambda

Extension methods

Contravariance

.Net

Delegates

ClassEnum

Properties

Anonymous types

Controls

Named arguments

Caller info

Generics

Yield

VB

Page 19: Build your wp8 app today

Multitasking on Windows Phone

Windows Phone 7Tombstoning

Run Under Lock

Notifications

Windows Phone 7.5Fast App Switching

Background Audio Playback

Generic Background Agents

Windows Phone 8VoIP

Continuous Background Execution

Fast App Resume

Evolution of Multitasking

Page 20: Build your wp8 app today

Windows Phone UI platformUsing XAML

Page 21: Build your wp8 app today

Design Principles

Pride in craftsmanship

More with less

Fast and fluid

Authentically digital

Win as one

http://aka.ms/wpuxprinciples

Page 22: Build your wp8 app today

UI Framework & XAML

UI FrameworkSignature & Standard Controls

Layouts

Tree based

Retained mode / composited framework

Fully extensibleUserControl & Panel

Styling

Templating

Subclassing

XAMLeXtensible Application Markup Language

A declarative, markup-based language to define your user experience

Everything you can do in XAML you can do in code – it’s just easier in XAML.

<StackPanel> <TextBox/> <Button/></StackPanel>

StackPanel stackPanel = new StackPanel();

TextBox textBox = new TextBox();stackPanel.Children.Add(textBox);

Button button = new Button();stackPanel.Children.Add(button);

Page 23: Build your wp8 app today

Controls

Reusable & CustomizableEmbody the Windows Phone design principles

Standard ControlsMap, WebBrowser, Ads, Intrinsic Controls (Button, TextBox, Grid, etc)

Toolkit ControlsDatePicker, TimePicker, Rating, AutoCompleteBox, etc

Signature ControlsPanorama, Pivot, LongListSelector, AppBar

Page 24: Build your wp8 app today

Signature Controls: Panorama

Page 25: Build your wp8 app today

Signature Controls: Pivot

Page 26: Build your wp8 app today

Signature Controls: LongListSelectorJumpListSticky Headers Grid View

Page 27: Build your wp8 app today

Pages & Navigation

*Screens Transient UI the user does not navigate to Shown in a Popup control by a Page.

*

*

Page 28: Build your wp8 app today

Page Navigation

Each page identified by a URIEach page is essentially stateless

private void btnLongListSelector_Click(object sender, RoutedEventArgs e){ NavigationService.Navigate(new Uri("/LongListSelectorPage.xaml", UriKind.Relative));}

Page 29: Build your wp8 app today

Live Tiles & Lock ScreenStaying alive !

Page 30: Build your wp8 app today

Tile Templates and Tile Sizes

Flip – flips from front to back

Iconic – clean iconic layout

Cycle – cycles through up to nine images

30

Page 31: Build your wp8 app today

Your app can show detailed status on the lock screen

Your app can show quick status (icon and count)

Your app can update the background image

Lock Screen on Windows Phone 8

Page 32: Build your wp8 app today

MonetizationGive me the cash !

Page 33: Build your wp8 app today

Making MoneyPaid Apps Trial -> Paid In-App Purchase Ads

Microsoft takes 30% of your revenue (up to 25,000$, 20% after)

Page 34: Build your wp8 app today

Build for bothWindows Phone 8 + Windows 8

Page 35: Build your wp8 app today

Build For Both

Windows and Windows Phone Shared CoreStraightforward to share code between appsNo XAML sharing technique however…

MVVM - Model View ViewModelEasy to share Model and ViewModel for both appsViews are tailored to screen sizesEasiest if you build both apps at the same time

Page 36: Build your wp8 app today

MiscSome other useful stuff you might to look at

Page 37: Build your wp8 app today

Team Foundation Service

Page 38: Build your wp8 app today

Azure Mobile Services

Page 39: Build your wp8 app today

App Studio

Build an app from your browser

Add content

Customize the app

Download it on your device

Share with family & friends

Page 40: Build your wp8 app today

ConclusionSi c’est pas maintenant le bon moment ?

Page 41: Build your wp8 app today

Conclusion

It’s the best time to get started !Tons of useful resources available onlineTopics we didn’t covered…

More advanced APIs: speech, NFC, wallet, background tasks…Launchers and choosersFile associationDeployment…

Happy to take questions !

Jump Start http://aka.ms/wp8js

Design Boot Camp

http://aka.ms/wp8designbootcamp

Training Kit http://aka.ms/wp8hol

Absolute Beginners

http://aka.ms/wpdevbegin