Ciklum .NET Saturday Relationship between .Net and WinRT

21
.Net and WinRT

Transcript of Ciklum .NET Saturday Relationship between .Net and WinRT

Page 1: Ciklum .NET Saturday Relationship between .Net and WinRT

.Net and WinRT

Page 2: Ciklum .NET Saturday Relationship between .Net and WinRT

What are Metro style apps?

Metro style apps are full screen apps tailored to your users' needs, tailored to the device they run on, tailored for touch interaction, and tailored to the Windows user interface. Windows helps you interact with your users, and your users interact with your app.

Page 3: Ciklum .NET Saturday Relationship between .Net and WinRT

Demo: Metro style apps

Page 4: Ciklum .NET Saturday Relationship between .Net and WinRT

Windows Runtime

Windows Runtime, or WinRT, is Microsoft's new programming model that makes the backbone of the new Metro-style apps (also known as Immersive) in new Windows 8 operating system.

Page 5: Ciklum .NET Saturday Relationship between .Net and WinRT

You already have the skills to build Metro style apps with C# and VB

Page 6: Ciklum .NET Saturday Relationship between .Net and WinRT

Windows 8

Page 7: Ciklum .NET Saturday Relationship between .Net and WinRT

Windows Runtime Architecture

Page 8: Ciklum .NET Saturday Relationship between .Net and WinRT

Metro style profile

Page 9: Ciklum .NET Saturday Relationship between .Net and WinRT
Page 10: Ciklum .NET Saturday Relationship between .Net and WinRT

Main Namespaces of the profile

Page 11: Ciklum .NET Saturday Relationship between .Net and WinRT

WinRT metadata

Windows Runtime metadata files use an updated version of .NET's metadata format

Page 12: Ciklum .NET Saturday Relationship between .Net and WinRT

Object Creation/Activation

Page 13: Ciklum .NET Saturday Relationship between .Net and WinRT

A kind of magic

Type Forwarding Projection

Wrappers

Page 14: Ciklum .NET Saturday Relationship between .Net and WinRT

DO NOT call APIs that are not part of the profile!

Page 15: Ciklum .NET Saturday Relationship between .Net and WinRT

WinRT Components

You should build a WinRT component when you want your code to be used from JS, C++, C# and VB

Page 16: Ciklum .NET Saturday Relationship between .Net and WinRT

Demo

Managed WinRT Component

Page 17: Ciklum .NET Saturday Relationship between .Net and WinRT

Portable class library

Page 18: Ciklum .NET Saturday Relationship between .Net and WinRT

Demo

Using WinRT in Desktop App

Page 19: Ciklum .NET Saturday Relationship between .Net and WinRT

Finalization

You already have the skills to build Metro style apps with C# and VB

Page 20: Ciklum .NET Saturday Relationship between .Net and WinRT

Resource Videos

● PLAT-874T – Lap around the Windows Runtime● PLAT-875T – Windows Runtime internals: understanding “Hello World“● TOOL-531T – Using WinRT with C#● TOOL-930C – A .NET developer’s view of Windows 8 app development

Page 21: Ciklum .NET Saturday Relationship between .Net and WinRT

Questions