building windows8 metro applications

25
Developer Conference 2011 MICROSOFT USER GROUP KOLKATA

Upload: abhishek-sur

Post on 10-May-2015

1.700 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Building Windows8 Metro Applications

Developer Conference 2011

MICROSOFT USER GROUP KOLKATA

Page 2: Building Windows8 Metro Applications

Building your first Metro Style Application

Abhishek Sur, Microsoft MVP Website: www.abhisheksur.com

Email : [email protected] : @abhi2434

Page 3: Building Windows8 Metro Applications

Agenda

Introduction Convention & Rules Features Application Manifest Application Life Cycle Packaging & Deployment

Page 4: Building Windows8 Metro Applications

Windows 8 Platforms and Tools

Windows Kernel Services

Application Model

Communication and Data

Graphics & Media

Devices & Printing

XAML

C, C++ / C#, VB

Javascript, CSS HTML

Normal Desktop Applications

Win 32 Native Apps

Metro Style Applications Desktop Applications

Page 5: Building Windows8 Metro Applications

Why Metro Application

Metro Style application are full screen, device ready, touch interactive applications.

They are more alive & truly designed for multi tasking

Supports fluid layout, so content flows freely and adapts to available space.

Application Store

Page 6: Building Windows8 Metro Applications

Conventions and Rules

Everything should be in background. UI threads must be responsive.

Layout needs to support Snapping. (FullScreen, Fillled, Snapped)

UI elements should follow standardization. (Application Bar, Charms etc.)

Packaging and Deployment is recommended to be done via App Store

Page 7: Building Windows8 Metro Applications

Video

Page 8: Building Windows8 Metro Applications

FEATURES

Page 9: Building Windows8 Metro Applications

Live Tiles

Tiles are like Icons. They provide facility to update tile content even

when the application is not running Tiles are bigger than Icon and helps you easily

Tap using Thumb. Size of Tile can be made Small or Big based on

content you want.

Page 10: Building Windows8 Metro Applications

Chirms

Each application is provided with Chirms. Chirms are special tools that allows an application

to interact with the environment. Chirms allows you to navigate to different

settings (Search, Share, Settings etc.)• Windows+F – Opens File Search• Windows+C – Opens Charms Bar• Windows+I – Opens Settings• Windows+Q – Opens App Search pane• Windows+W – Opens Settings Search app• Windows+Z – Opens App Bar

Page 11: Building Windows8 Metro Applications

Application Bar

Provides standard set of Icons in form of a Application Toolbar.

ApplicationBar generally applied on top or bottom of the application.

Shortcut for Application Bar is : Win + Z Application Bar provides standard access to

activities required for an application

Page 12: Building Windows8 Metro Applications

Layout & Convensions

demo

Page 13: Building Windows8 Metro Applications

WORKING WITH APPLICATION MANIFEST

Page 14: Building Windows8 Metro Applications

Capabilities

Windows 8 runs in constraint environment Capabilities define what the application is capable

of. Some capabilities are treated as sensitive and

hence depends on User preference. User has flexibility to switch on / off.

Page 15: Building Windows8 Metro Applications

Declarations

General declarations on which the application can participate.

Example : File Type association, Global search, Background Tasks etc.

Page 16: Building Windows8 Metro Applications

Capabilities

demo

Page 17: Building Windows8 Metro Applications

Application Life Cycle

Windows Metro application does not need to be stopped by the User.

Application must Detect Suspension, Termination or Resumption.

Application automatically gets to suspended mode after 5 seconds.

Application gets terminated when it is not used for a long time

Page 18: Building Windows8 Metro Applications

Debugging in VS

Visual Studio debugger never suspend an application.

Visual Studio has special menu which lets you Debug Suspension and Resumption of the application.

Page 19: Building Windows8 Metro Applications

Application Life Cycle Manageent

demo

Page 20: Building Windows8 Metro Applications

Packaging And deployment

Application Store Packaged using digital signature Zip content with XAML in plain text. Debug symbol files. VS generates additional files for local deployment

Page 21: Building Windows8 Metro Applications

Package includes

Compiled Code & Custom dlls (if any) XAML (not compiled) Resources Manifest Digital signature

Page 22: Building Windows8 Metro Applications

demo Packaging DemoAbhishek Sur, Microsoft MVP

Page 24: Building Windows8 Metro Applications

Thank you