A Developer's View of Windows 8

2,008
-1

Published on

Source codes for the demos are available at http://lunarfrog.com/blog/2011/12/01/cttdnug-presentation/

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,008
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A Developer's View of Windows 8

  1. 1. A Developers View of Windows8Andrei Marukovichandrei.marukovich@lunarfrog.com@taggedfrog
  2. 2. Agenda• Developing for Classic Desktop• Introduction to Metro UI• Building Metro applications 2
  3. 3. Is .NET dead? vs 3
  4. 4. Windows 8 platform HTML / C# / VB JS C / C++ or SL Metro-style APIs CLR Internet Win32 Explorer Windows Kernel Services 4
  5. 5. .NET 4.5 Framework• Pre-installed in Windows 8• Windows XP is not supported• Use 4.0 runtime (same as 3.5 use 2.0 RT) 5
  6. 6. Asynchronous development• New data structures• New async APIs• New keywords in C# and VB • async • await 6
  7. 7. DemoAsync and Await 7
  8. 8. If it runs on a Windows 7,itll run on Windows 8 PC 8
  9. 9. Demo Metro UI 9
  10. 10. App suspension• Inactive apps are suspended by the OS: • Apps remain in memory • No CPU, Disk or Network consumed • All threads are suspended 10
  11. 11. App lifecycle states Not started Running Suspending Suspended 11
  12. 12. DemoApp lifecycle 12
  13. 13. Windows 8 platform HTML / C# / VB JS Languages C / C++ or SL WinRT APIs CLR InternetCommunication Graphics/Media Devices Win32 Explorer Application Model Windows Kernel Services 13
  14. 14. WinRT• Object-oriented Win32 replacement• Native, written in C++• Based on COM• .NET-like metadata• Any language can be used to extend it• Async everywhere (50ms rule) 14
  15. 15. Windows 8 platformHTML / CSS DirectX XAML HTML / C# / VB JS C / C++ JavaScript C# / VB or C / C++IE 10 Engine CLR SL WinRT APIs CLR InternetCommunication Graphics/Media Devices Win32 Explorer Application Model Windows Kernel Services 15
  16. 16. .NET Metro profile• Subset of Client Profile • No Remoting • No System.Data • No System.Web • No private reflection, no Emit • Some APIs replaced with async versions • Some .NET classes moved to WinRT 16
  17. 17. XAML for Metro• New variation of XAML, close to Silverlight• Standard controls • Button, TextBox, ComboBox, CheckBox, etc.• New controls • ProgressRing • FlipView • GridView • ListView 17
  18. 18. Demo• Image Browser • Scans Pictures library and shows all the keywords • Allows to select a keyword • Shows all the images for the keyword• Snapping• Search integration• FilePicker integration 18
  19. 19. DemoDeveloping Windows 8 apps 19
  20. 20. App packaging • .appx file format (zip) Files / Assets • Compiled app and resources • App Manifest AppXManifest.xml • BlockMap BlockMap • Digital signature Signature .appx package 20
  21. 21. Installation• Declarative approach• Everything installed in one folder• Installation is on per-user basis • Installation for first user • Registration for the next• No custom actions• Automatic updates 21
  22. 22. How to start• Main start point: http://dev.windows.com/ • Samples • Metro style app reference and APIs • Forums • Windows 8 Developer Preview with developer tools (x64)• Installation on a VM • VirtualBox 4.1.2+ • VMware Workstation 8.0+ • Hyper-V 22
  23. 23. Links• BUILD conference videos • http://channel9.msdn.com/Events/BUILD/BUILD2011 • 8 Traits of Great Metro Style Apps (Jensen Harris)• Building Windows 8 blog • http://blogs.msdn.com/b/b8/ 23
  24. 24. Q&Alunarfrog.com/blog @taggedfrog 24
  25. 25. Thank you! 25
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×