Upload
robert-maclean
View
3.010
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
Windows 8 ◦ WinRT ◦ Metro Apps
FOR .NET DEVELOPERSRobert MacLean ◦ 10 April 2012
Hi
I work at www.bbd.co.za
I tweet at @rmaclean
I blog at www.sadev.co.za
Call me Robert
I want your feedback
Windows 8
Bold new user experience called Metro
ARM support for first time everOver 100 000 new & improved features
Next release of Windows OS
A new way to write applications: WinRT
Agenda
You go home and think about this
Get some beerShow some awesome code
Brief introduction to land scape
Come back on the 14th for the hack-a-thon
The new Windows Runtime
Modern thinking
Target market for a OS is different
Win32 API was introduced 19 years ago
Borrows from .NET & Mobile Platforms
Devices we use daily didn’t exist
Why a Metro app?
Installs the way users want: from a stored & sandboxed
Take advantage of Windows 8 features Increase trust & performance in the platform
Does this replace WinForms/WPF?
Cross CPU architecture
8 6/29/2011MICROSOFT CONFIDENTIAL
What does first class mean?[DllImport("avicap32.dll", EntryPoint="capCreateCaptureWindow")]static extern int capCreateCaptureWindow( string lpszWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hwndParent, int nID);
[DllImport("avicap32.dll")] static extern bool capGetDriverDescription( int wDriverIndex, [MarshalAs(UnmanagedType.LPTStr)] ref string lpszName, int cbName, [MarshalAs(UnmanagedType.LPTStr)] ref string lpszVer, int cbVer);
// more and more of the same
9 6/29/2011MICROSOFT CONFIDENTIAL
It means thisusing Windows.Media.Capture;
var ui = new CameraCaptureUI();ui.PhotoSettings.CroppedAspectRatio = new Size(4, 3);
var file = await ui.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (file != null) { var bitmap = new BitmapImage() ; bitmap.SetSource(await file.OpenAsync(FileAccessMode.Read)); Photo.Source = bitmap;}
It’s dangerous to go alone! Take this.
Windows 8 Developer LicenseVisual Studio Express for Windows is FREE
Visual Studio 11
Make time go slower
Roaming data & settings to the cloudLife cycle management
Cross language development
The South African Question
Registration: R350 per individual; R700 per company
Developers paid in Rand’s direct to bank account
Buy in Rand’s
South Africa supported fully from launch
http://bit.ly/w8-store-za
Don’t ask me questions
If you want to know more about the JavaScript side
Slides & Demo bits: www.sadev.co.za
Okay, fine… maybe just for you ;)
I want my beer
www.JSinSA.com