Metro and WinRT for the Silverlight/WPF Developer Part 2 SILVERLIGHTSHOW.NET WEBINARS SERIES GILL CLEEREN, February 2 nd 2012 -

Slides:



Advertisements
Similar presentations
Metro and WinRT for the Silverlight/WPF Developer SILVERLIGHTSHOW.NET WEBINARS SERIES GILL CLEEREN, February 2 nd
Advertisements

Bruce Scharlau, University of Aberdeen, 2012 Data storage options for mobiles Mobile Computing.
Introduction to XNA on Windows Phone 7 SILVERLIGHTSHOW.NET Webinar Peter Kuhn, June 30 th, 2011.
Windows Phone 7.5 Academic RoadShow Christophe Peerens Neomytic.
Microsoft SharePoint 2010 technology for Developers
Introduction to the Windows Runtime (WinRT) Ben Dewey Tallan, Inc.
A Blackboard Building Block™ Crash Course for Web Developers
Silverlight Presenter: Kevin Grossnicklaus February 25 th, 2010.
Windows 8 Introduction Mark Rosenberg Development Instructor New Horizons.
Lessons learned from developing a Windows 8 Metro application in C# Frode Nilsen Nilsen Labs Ticki.
Microsoft Office Illustrated Fundamentals Unit M: Creating a Presentation.
Essentials of Developing Windows Phone Apps Chinthaka Dissanayake Tech Lead Exilesoft.
Evan Hutnick Session Roadmap  Introduction  Silverlight Foundation  The Tools of Silverlight  Layout  Databinding  Data.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
An Introduction To Silverlight Gergely Orosz
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Switching on the cloud for Silverlight MSDN Live Meeting Gill Cleeren Microsoft Regional Director – Silverlight MVP Ordina Belgium.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Cross Platform Mobile Backend with Mobile Services James
‘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.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
READING, WRITING, BINDING, VALIDATING AND VISUALISING YOUR DATA Business value with Silverlight.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
Windows 8 Hot or Not Piotr Włodek. Agenda MetroCharms Contracts WinRT App Execution Environment Motion Summary.
Getting Started with Caliburn.Micro and Windows Phone 7 Gary Ewan Park Twitter: Blog:
Building RIA for Desktop, Web and Mobile using Silverlight and WPF Giorgio Sardo UX Consultant, Microsoft UK blogs.msdn.com/Giorgio.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Course Program, Evaluation, Examination Telerik Software Academy Apps for Windows Phone & Windows Store.
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.
Introduction to Web AppBuilder for ArcGIS: JavaScript Apps Made Easy
Windows 8 looks unlike any operating system Microsoft has created to date. In this lesson, you will learn how to navigate and manage files in the Windows.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Adam Calderon – C# MVP Application Development Practice Lead Interknowlogy.
Artezio LLC Address: 3G Gubkina Str., suite 504, Moscow, Russia, Phone: +7 (495) Fax: +7 (495)
Facebook for Beginners One Session Class. What will you learn today? What can you do on Facebook? Creating a profile Privacy Connecting with friends Sending.
Switch on the LightSwitch Gill Cleeren Microsoft Regional Director / Silverlight MVP Ordina Belgium
Exploring Mobile Device Networking Lesson 4. Exam Objective Matrix Skills/ConceptsMTA Exam Objectives Understanding Networking for Mobile Devices Network.
Windows 8: XAML or HTML? Karl Davies-Barrett CEE DPE Tech Lead, Microsoft 
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
Developing Windows 8 Style Application With HTML and JavaScript Lino Tadros | Falafel Software.
THE NEW MOBILE WORKSPACE Enable Business Applications on Mobile Devices hopTo Work “I am amazed to see how easily hopTo transforms the user interface of.
ArcGIS for Server Security: Advanced
Windows 8 App Development with XAML
12/29/2017 2:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Developing Windows 8 Style Application With HTML and JavaScript
About SharePoint Server 2007 My Sites
Build data-driven collection and list apps using XAML
Building a great Metro style device app for your printer
What web developers need to know when building Metro style apps
Introduction to mobile app development Module 2 – Getting started with apps and App Studio Lance McCarthy.
SharePoint Essentials Toolkit
The Application Lifecycle
Creating Windows Store Apps Using Visual Basic
Metro style apps using XAML: Make your app shine
Five Reasons to Use SharePoint 2013 Communities
Tooling and Diagnostics
Search: integrating into the Windows 8 search experience
Introducing Metro style device apps
Create experiences that span devices
StudentWeb Orientation
Brandon Bray Principal Group Program Manager Microsoft Corporation
Using tiles and notifications
Enterprise Developer Camp Jumpstart
Windows Forms in Visual Studio 2005: An in-depth look at key features
Bringing existing managed code into Metro style apps
Ch07 生命週期(Life Cycle).
Presentation transcript:

Metro and WinRT for the Silverlight/WPF Developer Part 2 SILVERLIGHTSHOW.NET WEBINARS SERIES GILL CLEEREN, February 2 nd

About myself... Gill Cleeren.NET ( Microsoft Regional Director Silverlight MVP Speaker (TechDays, TechEd, DevReach, DevDays, NDC Norway, Telerik Usergroup tour Sweden, UK and Scotland...) Visug user group lead ( Author (Silverlight 4 Data and services cookbook) – And a new one is being finished as we speak! Blog:

Some practical stuff Ask questions through Q&A window – Well answer them after the session or by personal mail A link to the video recording will be sent to you

You can win! Complete the post-webinar survey and win! You can win one of the 3 ebooks Getting Ready for Microsoft Silverlight Exam !

You can win! Tweet this webinar (comments, feedback...) using #webinarsilverlightshow tag! You can win one of the 3 ebooks Silverlight 4 Data and Services Cookbook (yep, thats my book )

New version coming soon! Updated for Silverlight 5 Over 115 recipes (thats 30 extra!) Extended to about 700 pages (thats 250 extra!) Covering WP7, MVVM, RIA Services and much more! More info:

This is the road to development on Windows 8 In this part... Styling and templating Data in your Windows 8 apps – Getting data – Data binding The Application Lifecycle (Copyright 2010 Windows Phone 7) Tiles and more (Copyright 2010 Windows Phone 7) IOing in Metro apps

This is the road to development on Windows 8 Covered in Part 1... General XAML stuff for Windows 8 Old and new controls Finding your way with navigation See for the recording!

Remember! For every Metro topic you already know, you get a badge! Remember! For every Metro topic you already know, you get a badge!

STYLING AND TEMPLATING You can earn the Stylish Windows 8 developer badge (on the other hand, do you really want that...?)

Windows 8 brings its default style. This style is similar to WP7 Metro.

Default styles Project templates provide great starting point for Metro style – Default styles are included Familiar XAML styling and resource dictionaries – Works in the same way Dark and light resource dictionaries

Dark and light themes Controls are styled by their control template Resource Dictionaries containing dark and light styles Dark styles are default – Recommended for media apps, such as photos or video – generic.xaml Light styles can be switched to quickly – Recommended for text-based apps – light_generic.xaml

SWITCHING TO THE LIGHT THEME DEMO

Get your style right! Windows 8 provides great controls through the platform (weve seen that earlier) Controls can be styled, breaking down their parts – Properties Set foreground color to blue – Templates Change the structural appearance of a control – Visual States Define how a control looks in a specific state

Styling remains the same as well... Explicit styles (keyed) Apply the style to the target when requested by key name Great for unique styles BasedOn styles – Inherit from an explicitly keyed style Implicit styles – Apply the style to all instances of the TargetType – Ideal for app wide styling of a control type

Templating in Windows 8 Metro style look and feel Change the control to suit you – Properties – Visual States – Content

Visual State Manager (again) Visual states give controls (and your app) a great feel – Define your apps behavior – Change appearance – Transforms – Easing – KeyFrames – Animations

STYLING AND TEMPLATING APPLICATIONS DEMO

Congratulations, you earned a badge! Stylish Windows 8 developer

WORKING WITH DATA IN WINDOWS 8 APPS You can earn the Data master badge

Apps should be connected and alive with content. A stock ticker without stock data is like a bar with no beer.

Working with data is similar to Silverlight and WP7 It involves – Getting data – Working asynchronously – Using the data Binding Parsing...

Getting data Working with services is preferred in most cases – Relational databases should be behind a service Local app storage – App has its own storage directory – Can access local file system

Supported service scenarios Use – XML-over-HTTP – JSON-over-HTTP – ASMX Web Services – Sockets – oData – (no RIA Services at this point )

Working async gets easier await keyword makes things easier Doesnt block UI thread – Doesnt require the ugly Dispatcher.BeginInvoke(() => …);

GETTING DATA TO YOUR WINDOWS 8 APPLICATION DEMO

Now that you have data, you can use it.

Now what to do with the data? LINQ is fully supported Data binding to controls – We saw a lot of new controls Old controls support data binding as well – Optionally grouping the data

Data binding Data binding is the infrastructure that links properties of controls with properties on your data objects Can be done in XAML or via code Binding actions enable customization of the binding logic – Value converters Binding modes – OneWay, TwoWay, OneTime All this stuff remains the same as it was before! Not everything that is supported in data binding in WPF, SL and WP7 is currently supported – Might change – Currently SL4 options are supported more or less

Data templates Enables re-usable declarative XAML to define data binding behavior and presentation Can define the template for the panel in which the contents will appear Can define the template for the items themselves

DATA BINDING AND DATA TEMPLATES IN WINDOWS 8 DEMO

Congratulations, you earned a badge! Data master

APPLICATION LIFECYCLE You can earn the Windows 8 Life time achievement badge

Windows 8 apps life cycle Apps have a life cycle that is familiar to Windows Phone 7 – App object has several events being called automatically

Application lifecycle

When the app is about to be shut down OnSuspending event on app object is your chance Understanding users intentions for save Utilize familiar serialization mechanisms available in XAML Metro style apps

Suspending and saving //SuspensionManager.cs can be found in SDK Samples async protected void OnSuspending(object sender, SuspendingEventArgs args) { SuspendingDeferral deferral = args.SuspendingOperation.GetDeferral(); await SuspensionManager.SaveAsync(); deferral.Complete(); }

Resuming the application Resuming event on app object App still lives in resident memory Scenarios around rehydrating live data

Activating an app Provide content to your Window Determine PreviousExecutionState for lifecycle management Navigate your app to desired view based on activation type Activate your Window to dismiss Splash screen

Activation events OnLaunched – User invokes app from Tile or Notification OnSearchActivated – User selects your app from search pane OnSharingActivated – User selects your app from share pane OnFilePickerActivated – User selects your app via FilePicker to select files from OnFileActivated – User selects file your app has a registered handler for

APPLICATION EVENTS DEMO

Congratulations, you earned a badge! Windows 8 Life time achievement

TILES AND MORE You can earn the Tile builder badge

You all remember tiles from WP7? Represents the app while not active Its a view in the application that engages the user Can be updating and alive with activity – Easy to create and update! Draw users back into your app over and over

2 types of tiles: regular ones Tap on tile to launch or switch to an app Static default tile specified in app manifest Two sizes: Both sizes can have live updates

2 types of tiles: Live tiles Tiles updated using pre-defined templates Templates provide rich rendering options Text-only, image-only or combination JPEG or PNG only, max size 150 KB Local or cloud updates – Can even use the Push Notifications

Badges Overlays status on top of tile Supports square and wide tiles Number up to 99 or pre-defined glyph: Always legible on top of images Badge

Secondary tiles Tiles created by pinning content from app Pin initiated by app via simple runtime call User confirms pin operation via system UI Exposes a personalized surface for app Same capabilities as app tiles Launch leads to relevant content

(LIVE) TILES DEMO

Congratulations, you earned a badge! Tile builder

STORAGE API You can earn the Mr Input badge

Can I touch your file please? Metro apps are more or less like Silverlight when it comes to storage Files can be – App data (specific for the application) – Local on the machine – On a device or a network – On the web Depending on the location, different restrictions and access model are in place

App data Your Metro app has FULL access on its local folder: – C:\Users\ \AppData\Local\Packages\ – Can create, delete, modify… files – Accessible via ApplicationData.Current.LocalFolder

Library access If your app wants access to a library on the device, it needs to specify this in the manifest – Forget this to get an System.UnauthorizedAccessException Music, Picture and Video libraries: nothing extra needed Documents Library: also requires filetypes to be specified

I need to access C:\temp Sorry, no can do! Only accessible via the FilePicker API – Remember, about the same in Silverlight

STORAGE API DEMO

Congratulations, you earned a badge! Mr Input

Summary Look what you already know!

N New badge unlocked! Windows 8 Metro app developer

Q&A

THANKS!

Metro and WinRT for the Silverlight/WPF Developer Part 2 SILVERLIGHTSHOW.NET WEBINARS SERIES GILL CLEEREN, February 2 nd