‘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.

Slides:



Advertisements
Similar presentations
Windows Basics An Introduction to the Windows Operating System.
Advertisements

Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software
Microsoft® Office Outlook® 2003 Training
Microsoft ® Office Access ® 2007 Training Easy Access with templates I: Create a database susanguggenheim-is.com presents:
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Win8 on Intel Programming Course Desktop : Sensors Cédric Andreolli Intel Software
Lessons learned from developing a Windows 8 Metro application in C# Frode Nilsen Nilsen Labs Ticki.
© by Pearson Education, Inc. All Rights Reserved.
XP Exploring the Basics of Microsoft Windows XP1 Exploring the Basics of Windows XP.
Building Silverlight Applications Using the MVVM pattern An Introduction by Peter Messenger Senior Developer – Qmastor
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Windows 8.1 It’s a Good System SIR Phil Goff Branch 116 November 21,
Office XP Introductory Concepts and Techniques Windows XP Edition M i c r o s o f t Windows XP Project An Introduction to Windows XP Professional and Office.
Desktop and Mobile Testing Miroslav Shtilianov QA Engineer Automated Testing Team Telerik QA Academy
Windows 10. The New Microsoft Operating System to be released July 29 th. It’s not just a PC operating system, it’s a lot more, it includes phones,
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Exploring the Basics of Windows 8
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 02 Types of Programming Language.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Moving & Copying Web Applications 1. 2 Why Do We Need to Copy or Move a Web Application?  So you can run someone else’s sample code.  So you can backup.
Effective WinRT with C++ Tips and tricks for developing WinRT applications in C++
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
Angelo Chan Kamran Bilgrami. Agenda ● WinJS - What and Why ● Modern Apps ● WinRT Architecture ● Demos o Controls o Data Bindings o Program LifeCycle Management.
WinRT and Windows 8 Sergey Barskiy Principal Consultant, Magenic.
Microsoft Visual Basic 2005: Reloaded Second Edition
CS378 - Mobile Computing App Project Overview. App Project Teams of 2 or 3 students Develop an Android application of your choosing subject to instructor.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
Thank you for your decision to try vTreePro Practice Tree Software! Your satisfaction is very important to us. Please feel free to send us an if.
IE 411/511: Visual Programming for Industrial Applications
Windows 8 Hot or Not Piotr Włodek. Agenda MetroCharms Contracts WinRT App Execution Environment Motion Summary.
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Lecture Set 2 Part B – Configuring Visual Studio; Configuration Options and The Help System (scan quickly for future reference)
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Getting Started with Caliburn.Micro and Windows Phone 7 Gary Ewan Park Twitter: Blog:
Object Oriented Software Development 9. Creating Graphical User Interfaces.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
1 Lesson 11 Exploring Microsoft Office 2010 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
Windows Phone 7 Mobile Code Camp The Why Why develop for Windows Phone 7 versus Droid or iPhone? It’s all relative to total app users. SDK and Environment.
Basics of Windows 95/98/NT. Versions of Windows Windows 95 and 98 used mainly on standalone computers Windows NT used on networked computers (as in our.
An Introduction to Developing Applications for Microsoft Silverlight Jaime Rodriguez
Intoduction to Andriod studio Environment With a hello world program.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Getting Started with Oracle Berkeley DB 11gR2 and ADO.NET
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Developing Windows 8 Style Application With HTML and JavaScript Lino Tadros | Falafel Software.
Easy Access with templates I: Create a database Lesson 16 By the end of this lesson you will be able to complete the following: Find the best database.
Real world Windows Phone development
Introducing the Windows Mobile development
Async or Parallel? No they aren’t the same thing!
RAD Certification Checkpoint #2 Introducing RadStudio (Hello World)
1. Introduction to Visual Basic
Build data-driven collection and list apps using XAML
MonoGame and Windows 8.
Introduction to Silverlight
Cooper Part III Interaction Details Designing for the Desktop
Program and Graphical User Interface Design
Creating Windows Store Apps Using Visual Basic
CIS16 Application Development Programming with Visual Basic
Cooper Part III Interaction Details Designing for the Desktop
Brandon Bray Principal Group Program Manager Microsoft Corporation
Enterprise Developer Camp Jumpstart
User guide for OneDrive
Presentation transcript:

‘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 new WinRT is ‘Metro’ or ‘Modern’ --o-0-o-- I will call it METRO

The ‘Surface’ Tablet Microsoft make and sell :- - a ‘Surface RT’ – which runs ‘WinRT’ only - a ‘Surface Pro’ which runs Win32 & ‘WinRT’ ‘Surface RT’ is designed for personal on-the-move use. ‘Surface Pro’ is for nerds like us – we can use it to create and develop apps for Phone and Tablet. The ‘Pro’ model can be run as a powerful workstation running VS 2012, SQL Server, TFS, and with Hyper-V run virtual machines – so the phone8 ‘Emulator’ works.

Windows 8 – on a Desktop We can use Win8 on our desktops to create apps for the WinRT ‘Surface’ tablet, and test run them, without having a real Tablet device. The ‘Simulator’ is what is used by VS2012. The ‘Simulator’ does not use a VM & Hyper-V But app development for Phone8 does and the test platform is called the ‘Emulator’.

The ‘Simulator’ at work (a)

The ‘Simulator’ at work (b)

a useful tool from ‘Stardock’

‘Simulator’ & ‘Emulator’

‘S’ or ‘E’ from Visual Studio 2012

‘WinRT’ – GUI and XAML mark-up WPF, ‘WinRT’ and ‘Phone8’ all use the same UI technology, based on XAML script. We can transfer 95% of learned skills and knowledge across all three Microsoft platforms. Along with XAML comes data binding, and this too is consistent across the platforms.

‘Licence’ - Creating Apps As soon as we try to use VS to create apps for Tablet and Phone, we get a dialog to get a licence.

Restrictions – ‘File Access’ There is a ‘Sandbox’ in both ‘WinRT’ for Tablet as well as ‘WP8’ for Windows smartphone. Without the user’s consent, files can only be accessed from the local folder. Local folders can’t be seen from outside the app. Other user files are available only through a file dialog tool. This is NOT as bad as it sounds !

‘Local’ files – folder structure

‘Local’ files - accessing

Manifest – allowed user libraries

‘Restrictions’ – Asynchronous operations Any ‘external’ operation has to be asynchronous. We as developers are NOT allowed to ‘block’ the operation of the Tablet / Smartphone. C# code has ‘await’ and ‘async’ as well as ‘Task’ in its keywords. This is new to many, and takes a little getting used to – BUT – it is quite useable once we have a few good examples, to copy and adapt.

‘Task’ – return type Often we need to return something – simple data, or a custom object. The ‘Task’ with a type is the way to do this :-

“Goodbye” – ‘MessageBox’ ! You will see stuff like this from time to time :- [ I suggest just give it up – no message boxes at all !? ]

“Goodbye” – ‘MessageBox’ (b) Here is what ‘Mr. Windows himself has to say :- (Charles Petzold, that is …)

Style of Apps – ‘Page’ driven We need to add our own page navigation – app bar icons. Loss of data if controls not ‘bound’ to project properties.

Fewer UI controls – nicer new ones!

MVVM patterns – ‘Prism’ and ‘light’ Both are available to Metro. I prefer ‘Prism’ as it is from Microsoft, and is not a “one man band” effort. This is my personal choice on how I approach things. I got good results with ‘Prism’ but read that the ‘Light’ version from “Laurent Bugnion” (GalaSoft) works okay. I will try it out for my eNotes.

MVVM – more information

MVVM – lots of choices …… Or ‘nothing’ !

‘Prism’ & Calculator – trial app(a)

‘Prism’ & Calculator – trial app(b)

‘Prism’ – code ‘bits and bobs’

‘Touch’ – is what its all about ! Whether on Desktop, Tablet, or Phone – its TOUCH !!! … for ‘Windows 8’. Acer do a 23” ten point touch-screen. Ten point tracking is the Microsoft standard. Surface does 10 points. Other tablet oriented devices may be less, like 5. The events for ‘WinRT UI’ elements no longer have ‘click’ everywhere, and ‘mouse’. Checkout ‘pointer’, ‘tap’ and ‘press’. [ Only a Button still has a ‘click’ ]

“Data” – using SQL, on Tablet As yet Microsoft have not provided us with SQL provision – strangely!? ‘Phone8’ has L2S (LINQ to SQL) and it works fine. For the moment, I am using ‘SQLite’ and it works fine enough, but lacks good LINQ support. I would expect something soon from M$, perhaps with MSSS 2014 ? --o-0-o-- Since ‘Entity Framework’ works with WP8 we can expect something soon for ‘WinRT’. --o-0-o--

The “Thread Pool” Plenty of ‘Timer‘ choices – Dispatcher, as well as Delay and Periodic via the “Thread Pool”. {.. it is easy to use.. } Guidelines advise up to use the pool for tasks outside of the main UI thread. Here is a set of six UserControls (UCs) which each use a timer from the pool. All six are ticking away and refreshing the local times in the time zones indicated. See ‘ClickStartMETRO’ for more details on how to do this.

the biggest ‘drag’ – Alwyn or Willie?

Metro dragging – more fun ! ‘FlipView’ – ‘ListView’ – ‘GridView’ : above are two ‘ListView’ controls

Last, but ‘yes’ LINQ ! ‘last but not least’ ‘LINQ to Objects’ works for Tablet and Phone8. If collections are in-memory then LINQ works. ‘LINQ to SQL’ is not as yet available to ‘WinRT’. ‘SQLite’ is available to Metro, but it has some limited ability with LINQ – through ‘sqlite-net’, a wrapper. In my trial apps I use basic LINQ to retrieve a collection for a Table, and then ‘LINQ to Objects’, to do the rest.