90 likes | 216 Vues
Join Kevin Stumpf in this comprehensive session on developing applications for Windows 8 and WinRT. Explore the Async/Await pattern, understand the WinRT API, and delve into the intricacies of WinRT's security model. This session covers handling UI operations using synchronous and asynchronous execution, as well as practical applications like file downloads and CPU-intensive logic. Engage in a hands-on homework assignment that involves recording video, previewing images, and utilizing shared folders. Expand your Windows development skills today!
E N D
Developing for Windows 8/WinRTSession 4Fundamentals Kevin Stumpf
Agenda • Async / Await Pattern • WinRT API • WinRT’s Security Model • Q&A + Homework Assignment
Synchronous execution Handle UI operations Handle UI operations Download a File Read something from disk Asynchronous execution Worker Thread I (IO operations, e.g. reading a 4GB file from disk) Handle UI operations Handle UI operations Handle UI operations (Main Thread) Worker Thread II (CPU-intense business logic, e.g. calculating the square root of every prime number up to 17 trillion)
Task Unit of Work Asynchronous Simple and Flexible
on method declaration returns void or Task async await precede method call only in async method
WinRT API asynchronous object oriented private Hierarchical self-explanatory namespaces
Security System App exposes Capabilities publishes restricts Marketplace Broker Network (Client/Server) • Shared Directories • Documents • Videos • Pictures • Music • Hardware • Webcam • Microphone • Proximity • GPS
Homework Assignment • Record a video with your webcam • Play a preview in your application • Save it to the “My Videos” folder • *Have a ListBox that lists all the Pictures in your Pictures Library • *Show a preview of a Picture when the user selects a ListBox entry *For you Hardcore guys!
Meet Danny Warren January 28thfor our 5thsession! SETTINGS AND SEARCH CONTRACT