The Windows Runtime (WinRT) is the shared runtime and API space used by store apps across the Windows platform (phone and client) 5 Common WinRT.

Slides:



Advertisements
Similar presentations
Windows Phone 7.5 Academic RoadShow Christophe Peerens Neomytic.
Advertisements

Windows Phone 8.1 for Developers Sascha Corti Technical Evangelist, Microsoft Switzerland | techpreacher.corti.com
Developing for Windows 8/WinRT Session 4 Fundamentals Kevin Stumpf.
Essentials of Developing Windows Phone Apps Chinthaka Dissanayake Tech Lead Exilesoft.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Building Windows Phone Applications with Silverlight Nguyen Thanh Tung Project Manager - MISA JSC.
Alejandro Campos Magencio MS Technical Extreme Code Sharing with C# Y A XB.
Advanced Windows 8 Apps Using JavaScript Jump Start Exam Prep Advanced Windows 8 Apps Using JavaScript Jeremy Foster Microsoft Developer Evangelist.
MSDN How do I add Voice Commands to my application Find Install Voice Command Sets Search Search for {dictatedSearchTerms} Find Find.
Khalid Siddiqui Senior Architect, Mobility Center of Excellence Microsoft Corporation SESSION CODE: WPH311.
Connected Experiences
Apps are notified when they have been resumed.
‘Metro’ / Modern – ‘WinRT’ Also known as ‘Windows Store Apps’ --o-0-o-- Windows 8 comes as two parts Win32 and WinRT The Traditional Desktop is Win32 The.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
WinRT and Windows 8 Sergey Barskiy Principal Consultant, Magenic.
Integrate your game with Windows platform Vladimir Kolesnikov Technical Evangelist
Extend your app to multiple device families and use new capabilities by targeting the UWP.
Windows Phone 8 uses Microsoft Push Notifications Windows 8/8.1 uses Windows Notification Service Windows Phone 8.1 uses Windows Notification.
Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model.
Windows 8 Hot or Not Piotr Włodek. Agenda MetroCharms Contracts WinRT App Execution Environment Motion Summary.
Agenda Windows Phone History WP 7.0 Silverlight WP 7.5 Silverlight WP 8.0 Silverlight WP 8.1 Silverlight WP 8.1 WinRT.
Windows Phone 8 Tips & Tricks for Developers Sascha Corti, Microsoft Switzerland Technical Evangelist | techpreacher.corti.com.
Reaching your customers in new and unique ways Mobile “Devices” led to revolutionary Experiences “Bring the experience with you” Came with many constraints.
“Thanks guys for a great information packed day. head is spinning!” “Well done guys. Intense sessions” “This is the best ever JumpStart that I have.
Local, scheduled, periodic and push updates.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Join the MVA Community! ▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while.
Windows 8 for Existing.NET Developers Tim Heuer Program Manager Windows Developer Experience Microsoft Corporation.
Windows and Windows Phone Application Model Universal Apps What’s new in Windows Phone
Bridges to the Magickal Faerie Land of Windows 10 Hannes Nel M263.
Networking Proximity In-App Purchase Sensors Location File System Core app model Threading Windows Phone 8.
Building Windows Phone Applications with Silverlight Jaime Rodriguez
Building Windows Runtime Components in C++ Harry Pierson Program Manager, Windows Runtime Experience Team Microsoft Corporation.
Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft
04 |Sharing Code Between Windows 8 and Windows Phone 8 in Visual Studio Ben Riga
Building Windows Phone Applications with Silverlight (Part 1) Mike Harsh Program Manager, Microsoft.
What web developers need to know when building Metro style apps Scott Dickens Principal Program Manager Lead Microsoft Corporation DEV352.
Windows Phone Tiles and Notifications Sending alerts to your app.
The Top 10 Things I Learned About WinRT/HTML as a Silverlight Developer Michael Crump | Telerik.
Soyatec Contents Needs Architecture XAML fundamentals Data Binding Advanced features Style Q&A.
Exploring Networked Data and Data Stores Lesson 3.
0 Developing for Windows 10 Tony Champion Champion DS.
Andrej Radinger Windows Phone Development MVP Mobendo d.o.o. Što je novo za developere u Windows Phone 8.1.
Windows Phone and Windows 8 Apps Development and Promotion OLEKSANDR KRAKOVETSKYI CEO, DevRain
Vaughan Knight App Ecosystem Lead Microsoft FileOpenPicke r, FileSavePicker Read/Write access to SD card Appointments /Calendar API enhancements Appointments.
Windows 8 App Development with XAML
Cross-platform app development
In Windows 8 Store Applications
Windows Developer Day Fall Creators Update Chris Cortes
Windows Phone 8.1 New Features
Silverlight apps on Windows Phone 8.1
Migrating 8.1 Apps to Windows 10
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
What web developers need to know when building Metro style apps
What’s New in Accessibility (for Developers and Users)
Sharing Files and Data in Windows Phone 8.1
Windows Phone multitasking
Building Apps for Windows Phone 8.1 Jump Start
Data Storage, Backup and Roaming
Camera, Media and Audio in Windows Phone 8.1
11/19/ | App Model & Storage © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
A Developer's Guide to Windows 10 Andy & Jerry
Metro style apps using XAML: What you need to know
Tooling and Diagnostics
TechEd /29/ :46 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Windows Runtime App Lifecycle
Build /23/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Platform for Metro style Apps
4/9/ | Contracts © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Native Integration Module #3 of 6.
Presentation transcript:

The Windows Runtime (WinRT) is the shared runtime and API space used by store apps across the Windows platform (phone and client) 5 Common WinRT APIs Phone-specific WinRT APIs Windows-specific WinRT APIs Dramatic convergence in 8.1 Goal is 100% convergence for dev scenarios In 8.0, we had ~30% API convergence With 8.1, we move well past 90%+ convergence

HTML Win32 JavaScript Code WinRT C++ CodeC#/VB Code HTMLXAML Windows Runtime XAML WinJS.NET for Windows Store C#/VB Code Silverlight XAML Silverlight.NET Windows Phone Silverlight XAML

Windows Phone 8.1 AppWindows 8.1 App XAML View Phone UI XAML View Windows UI Shared Code, Images, Files WinRT

Windows Phone 8.1 AppWindows 8.1 App XAML View XAML UI XAML View XAML UI Logic Data ? Logic Data

Windows 8.1Windows Phone 8.1 some common APIs may have different behaviour across Windows/Phone Windows Only WinRT e.g. search contract e.g. multiple windows e.g. resizable windows e.g. printing support Phone Only WinRT e.g. action center e.g. status bar e.g. back key handling

files & settings: local, temp, roaming, pickers… network: http, websockets, sockets… notifications: tiles, toasts, badges, push store: app purchases, receipts… sensors: gps, geofencing, gyro, compass… lifecycle: launch, suspend, resume, background tasks localisation: resource resolution from XAML/code…

//Create the picker object FileOpenPicker openPicker = new FileOpenPicker(); openPicker.ViewMode = PickerViewMode.Thumbnail; openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary; // Users expect to have a filtered view of their folders openPicker.FileTypeFilter.Add(".jpg"); openPicker.FileTypeFilter.Add(".png"); // Open the picker for the user to pick a file StorageFile file = await openPicker.PickSingleFileAsync(); if (file != null) { // Do something with the file... } //Create the picker object FileOpenPicker openPicker = new FileOpenPicker(); // On Windows Phone, setting Filtering to image types // causes Picker to show Camera Roll openPicker.FileTypeFilter.Add(".jpg"); openPicker.FileTypeFilter.Add(".png"); // Open the picker for the user to pick a file openPicker.PickSingleFileAndContinue();

100% No: Location (Windows) vs. Geopoint (WP) No: Bing Maps (Windows) vs. WinRT Map control (WP)

#if WINDOWS_PHONE_APP Windows.Phone.UI.Input.HardwareButtons.BackPressed += this.HardwareButtons_BackPressed ; #endif

/// /// DataSource.cs /// public partial class DataSource :IDataSource { public async Task > RetrieveFolders(IFolder root) {... // other logic var folders = await LoadFolders(root);... // other logic return folders } /// /// DataSource.WP.cs /// public partial class DataSource { private async Task > LoadFolders(IFolder root) {... }

HERE maps on Windows (8.1)/Phone (8.0)

common, same rendering Button Slider ToggleSwitch ProgressBar etc (many more) common, different content Hub ListView GridView etc. common, different rendering DatePicker TimePicker CommandBar AppBar etc. unique SearchBox Pivot ContentDialog AutoSuggestBox etc.

#if WINDOWS_APP var result = VisualStateManager.GoToState(this, "Windows", false); #elif WINDOWS_PHONE_APP var result = VisualStateManager.GoToState(this, "WindowsPhone", false); #endif

<Application x:Class="FlickrSearch.App" xmlns=" xmlns:x=" xmlns:local="using:FlickrSearch">

<ResourceDictionary xmlns=" xmlns:x=" xmlns:local="using:FlickrSearch"> <ResourceDictionary xmlns=" xmlns:x=" xmlns:local="using:FlickrSearch"> <FlipView ItemsSource="{Binding Items}" ItemTemplate="{StaticResource APhotoTemplate}">

WP 8.1 App – PFN RoamingLocalTemp Windows App – PFN RoamingLocalTemp PFN Roaming folder App writes data using standard file/settings APIs. Sync engine transfers data periodically based on triggers (user idle, battery, network, etc.) OneDrive stores up to 100kb of roaming data per app (not included in user quota). If app exceeds the limit, sync stops. Other clients are notified of updated data via Windows Notification Service. If app is running when sync occurs, an event is raised. Roaming settings

Windows.Storage.ApplicationDataContainer roamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings; // saving settings... roamingSettings.Values["userName"] = someData; // fetching settings... if (roamingSettings.Values.ContainsKey("userName")) { userName = roamingSettings.Values["userName"].ToString(); }

Windows.Storage.ApplicationData.Current.DataChanged += Current_DataChanged;... void Current_DataChanged(ApplicationData sender, object args) { // Refresh your settings... } The event is only fired if the application is active at the time of the change You should still load up all your data when your app starts