+ All Categories

Win8 ru

Date post: 31-Oct-2014
Category:
Upload: igor-sychev
View: 872 times
Download: 4 times
Share this document with a friend
Description:
Презентация, которая была шаблоном для рассказа про Windows 8 ctp в ННГУ, НИЯ-ВШЭ НН, ЧГУ в ноябре 2011 года
Popular Tags:
46
www.buildwindows.com Windows 8 Сычев Игорь Разработчик Сравни.Ру
Transcript
Page 1: Win8 ru

www.buildwindows.com

Windows 8

Сычев ИгорьРазработчик Сравни.Ру

Page 2: Win8 ru

450млн лицензий <2 года

Page 3: Win8 ru

www.buildwindows.com

Communication

& Data

Devices & Printing

WinRT APIsGraphics &

Media

Windows 8

Desktop Apps

CC++

Win32

C#VB

.NET SL

HTMLJavaScri

pt

Internet Explore

r

Metro style Apps

Application Model

XAML

JavaScript

HTML / CSS

CC++

C#VB

Windows Kernel Services

Syst

em

Serv

ices

Vie

wM

od

el

Con

trolle

r

Kern el

Page 4: Win8 ru

Идеи приложений в стиле Metro

DESIGNING FOR ALL PCS, WINDOWS INTEGRATION AND APP LIFECYCLE

Page 5: Win8 ru

Дисплеи и разрешения

Snap, Filled andOrientation

Pixel Density

Screen Size

Page 6: Win8 ru

www.buildwindows.com

Определение разрешений экран

• Current Resolution:• Window.Current.Bounds

• Event:• Window.Current.SizeChanged

1366x768

1920x1080

Page 7: Win8 ru

www.buildwindows.com

Определения ориентации

• Current (Namespace: Windows.Graphics.Display)• DisplayProperties.CurrentOrientation

• Event:• DisplayProperties.OrientationChanged

Landscape

Portrait

Page 8: Win8 ru

www.buildwindows.com

Определение Расположения рабочей области• Current (Namespace:

Windows.UI.ViewManagement)• ApplicationLayout.Value

• Event:• ApplicationLayout.GetForCurrentView().LayoutChanged

Snapped Filled Full Screen

Page 9: Win8 ru

www.buildwindows.com

Использования live tiles до запуска приложений

• app’s tile –это возможность предоставить информацию пользователю еще до включения программы

Page 10: Win8 ru

www.buildwindows.com

Lock screen apps

• Apps that can run in the background

• Designed for real-time communications apps (Mail, IM, VoIP)

• Maintain TCP sockets in the background

• Run code periodically• Run code in response to

system events (user login)

Page 11: Win8 ru

www.buildwindows.com

Новые XAML UI Контролы (ApplicationBar)• Contains UI for app commands• Persistent, light dismiss or time

dismiss• Swipe in from top/bottom to display

ApplicationBar

Page 12: Win8 ru

www.buildwindows.com

New XAML UI Controls (ListView, GridView)• List controls with distinct Windows 8 “feel”• Designed for touch• Support Windows 8 selection models• UI and Data Virtualization• Built in grouping

Page 13: Win8 ru

www.buildwindows.com

• MediaPlayer• ToggleSwitch• ProgressRing• FlipView• JumpViewer• Semantic Zoom Control• Supports 2 Levels

New XAML UI Controls (Continued)

Page 14: Win8 ru

www.buildwindows.com

Windows Runtime Архитектура

Windows Metadata & Namespace

Language Projection

Windows Core

Windows Runtime Core

XAML Storage …Network

UI Pickers MediaControls

Metro style app

Runtime Broker

Language Support (CLR, WinJS, CRT)

Web Host (HTML, CSS, JavaScript))

Page 15: Win8 ru

DevicesSensor

sGeolocation

Portable

NFC

Communications & DataContracts

XML

Web

SMSNetworking

Notifications

Local & Cloud Storage

Streams

Background Transfer

User InterfaceHTML5/CSS XAML DirectX Controls

Input Accessibility Printing

Data Binding

TilesSVG

API для Metro style приложений

FundamentalsApplication

ServicesAuthenticatio

nCryptograph

yGlobalizatio

nMemory

ManagementThreading/Timers

MediaVisual Effects

Playback

PlayToCaptur

e

Page 16: Win8 ru

www.buildwindows.com

App Execution Environment

Core

OS

Broker

Direct API calls

Brokered API calls

App Container + Signed & Validated code

Your App

WinRT APIs

Process.exe

AppXManifest

Page 17: Win8 ru

www.buildwindows.com

Process State Transitions

RunningApp

SuspendedApp

suspending Terminated

AppLow Resources

resuming

Page 18: Win8 ru
Page 19: Win8 ru
Page 20: Win8 ru

450 million licenses <2 years

Page 21: Win8 ru

• Переосмысление user experience

• Новая модель приложений

• Диверсификация форм факторов

• Интеграция• Обнаружение• Телеметрия

Windows 8

Page 22: Win8 ru

Store home

App listingEditorial promotion Category

Store anatomy

Page 23: Win8 ru

www.buildwindows.com

Windows App Certification Kit

• What: Single tool for self-assessment to ensure technical compliance

• Why: helps create a high-quality experience

• Automated tests that look for:• App manifest compliance• Image sizing and scaling• Use of platform supported APIs• App reliability and security

Page 24: Win8 ru

www.buildwindows.com

Implementation basics

Check license

Get latest

listing

data

Prompt for

purchase

Page 25: Win8 ru
Page 26: Win8 ru
Page 27: Win8 ru

Step 1: Check the license• // get current product• var currentProduct = Windows.ApplicationModel.Store.CurrentProduct;

• // get the license information• var licenseInformation = currentProduct.licenseInformation;

• // check to see if the user has an active non-trial license• if (licenseInformation.isTrial) {• // user has trial version of the application• }

// get current productvar currentProduct = Windows.ApplicationModel.Store.CurrentProductSimulator;

// get the license informationvar licenseInformation = currentProduct.licenseInformation;

// check to see if the user has an active non-trial licenseif (licenseInformation.isTrial) { // user has trial version of the application}

Page 28: Win8 ru

$ 8.00 € 8.00 ¥ 8,000

• // get listing info • currentProduct.loadListingInformationAsync().then(• function (listing) {• var listingInfo = listing;• });

• var price = listingInfo.formattedPrice;

Step 2: Load the listing data

<ListingInformation> <Product> <MarketData xml:lang="en-us"> <Name>Piano</Name> <Description>Piano Application</Description> <Price>8.00</Price> <CurrencySymbol>$</CurrencySymbol> </MarketData> </Product></ListingInformation>

Page 29: Win8 ru

Step 3: Prompt for purchase• currentProduct.requestProductPurchaseAsync().then(• function () {• // Purchase succeeded• EnableFullFunctionality();• },• • function (err) {• // Purchase failed• // Check err to see if user cancelled•

• });

Page 30: Win8 ru

Commanding surfaces

Message Dialog

Flyout

App Bar

Tooltip

Settings PaneContext Menu

Page 31: Win8 ru

Presenting data controls

Flip ViewList View Grid View

Page 32: Win8 ru

Presenting data controlsSingle & Multi SelectGrouping

Built-in Animations

Page 33: Win8 ru

Semantic zoom

Page 34: Win8 ru

Scrolling content with ScrollViewIdle

• No scrollbar Touch & keyboard

• Panning indicator Mouse

• Scrollbar

Page 35: Win8 ru

Text editing controlsSingle-Line Text Box Password

Multi-Line Text Box Rich Text Box

Clear Button Reveal Button

Page 36: Win8 ru

Text editing controls - behaviorsText Selection

Cut, Copy, and Paste

Spellchecking

Mouse & Keyboard

Touch

Page 37: Win8 ru

Text editing controls - touch keyboard

Page 38: Win8 ru

What’s new with controls in Windows 8?

Page 39: Win8 ru

www.buildwindows.com

Native to HTML. Native to XAML.

Page 40: Win8 ru

www.buildwindows.com

New and improved set of built-in controls.

Page 41: Win8 ru

In-box Controls for Metro Style Apps

App Bar

List Box

Hyperlink

CheckboxProgress Bar

Text Box

Password

Progress Ring

Tooltip

Grid ViewButton

Flip View

Combo Box

Scroll Bar

Context Menu

Slider

Toggle Switch

Semantic Zoom

Panning Indicator

Rating

List View

Flyout

Radio Button

Clear Button

Reveal Button

Spell Checking

Page 42: Win8 ru

Everyday widgetsButton

Checkbox

Combo Box

Date Picker Radio Button

Hyperlink

ListBox

Ratings

Progress Bar

Progress Ring

Time Picker

Toggle Switch

Slider

Page 43: Win8 ru

Everyday widgets - custom styledButton

Checkbox

Combo Box

Date Picker Radio Button

Hyperlink

ListBox

Ratings

Progress Bar

Progress Ring

Time Picker

Toggle Switch

Slider

Page 44: Win8 ru

www.buildwindows.com

Сычев ИгорьРазработчик Сравни.РуMicrosoft Student Partner

[email protected]@sychevigor

Спасибо за внимание

Page 45: Win8 ru

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 46: Win8 ru

www.buildwindows.com

ss

• http://www.thevista.ru/page.php?id=14897


Recommended