Win8 ru
-
Upload
igor-sychev -
Category
Technology
-
view
872 -
download
4
description
Transcript of Win8 ru
www.buildwindows.com
Windows 8
Сычев ИгорьРазработчик Сравни.Ру
450млн лицензий <2 года
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
Идеи приложений в стиле Metro
DESIGNING FOR ALL PCS, WINDOWS INTEGRATION AND APP LIFECYCLE
Дисплеи и разрешения
Snap, Filled andOrientation
Pixel Density
Screen Size
www.buildwindows.com
Определение разрешений экран
• Current Resolution:• Window.Current.Bounds
• Event:• Window.Current.SizeChanged
1366x768
1920x1080
www.buildwindows.com
Определения ориентации
• Current (Namespace: Windows.Graphics.Display)• DisplayProperties.CurrentOrientation
• Event:• DisplayProperties.OrientationChanged
Landscape
Portrait
www.buildwindows.com
Определение Расположения рабочей области• Current (Namespace:
Windows.UI.ViewManagement)• ApplicationLayout.Value
• Event:• ApplicationLayout.GetForCurrentView().LayoutChanged
Snapped Filled Full Screen
www.buildwindows.com
Использования live tiles до запуска приложений
• app’s tile –это возможность предоставить информацию пользователю еще до включения программы
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)
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
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
www.buildwindows.com
• MediaPlayer• ToggleSwitch• ProgressRing• FlipView• JumpViewer• Semantic Zoom Control• Supports 2 Levels
New XAML UI Controls (Continued)
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))
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
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
www.buildwindows.com
Process State Transitions
RunningApp
SuspendedApp
suspending Terminated
AppLow Resources
resuming
450 million licenses <2 years
• Переосмысление user experience
• Новая модель приложений
• Диверсификация форм факторов
• Интеграция• Обнаружение• Телеметрия
Windows 8
Store home
App listingEditorial promotion Category
Store anatomy
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
www.buildwindows.com
Implementation basics
Check license
Get latest
listing
data
Prompt for
purchase
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}
$ 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>
Step 3: Prompt for purchase• currentProduct.requestProductPurchaseAsync().then(• function () {• // Purchase succeeded• EnableFullFunctionality();• },• • function (err) {• // Purchase failed• // Check err to see if user cancelled•
• });
Commanding surfaces
Message Dialog
Flyout
App Bar
Tooltip
Settings PaneContext Menu
Presenting data controls
Flip ViewList View Grid View
Presenting data controlsSingle & Multi SelectGrouping
Built-in Animations
Semantic zoom
Scrolling content with ScrollViewIdle
• No scrollbar Touch & keyboard
• Panning indicator Mouse
• Scrollbar
Text editing controlsSingle-Line Text Box Password
Multi-Line Text Box Rich Text Box
Clear Button Reveal Button
Text editing controls - behaviorsText Selection
Cut, Copy, and Paste
Spellchecking
Mouse & Keyboard
Touch
Text editing controls - touch keyboard
What’s new with controls in Windows 8?
www.buildwindows.com
Native to HTML. Native to XAML.
www.buildwindows.com
New and improved set of built-in controls.
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
Everyday widgetsButton
Checkbox
Combo Box
Date Picker Radio Button
Hyperlink
ListBox
Ratings
Progress Bar
Progress Ring
Time Picker
Toggle Switch
Slider
Everyday widgets - custom styledButton
Checkbox
Combo Box
Date Picker Radio Button
Hyperlink
ListBox
Ratings
Progress Bar
Progress Ring
Time Picker
Toggle Switch
Slider
www.buildwindows.com
Сычев ИгорьРазработчик Сравни.РуMicrosoft Student Partner
[email protected]@sychevigor
Спасибо за внимание
© 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.
www.buildwindows.com
ss
• http://www.thevista.ru/page.php?id=14897