Cover by Morgan Skinner, Karli Watson, Jay Glynn, Bill Evjen, Christian Nagel

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 31

Windows Runtime

WHAT’S IN THIS CHAPTER?

  • Windows Runtime overview
  • Understanding Language projection
  • Using Windows Runtime components
  • Handling the life cycle of applications
  • Storing application settings
  • Defining and using capabilities

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at http://www.wrox.com/remtitle.cgi?isbn=1118314425 on the Download Code tab. The code for this chapter is divided into the following major examples:

  • Language Projections
  • Lifecycle Management
  • App Settings
  • Capabilities

OVERVIEW

Starting with Windows 8, Microsoft offers a new runtime for writing Windows applications with the new style: the Windows Runtime (WinRT). It contains classes with properties, methods, and events, and it uses delegates — so it looks like .NET but it’s a native library. This chapter explains the core fundamentals of the Windows Runtime, demonstrating how it differs from .NET and how you can integrate the two to begin writing Windows 8 applications.

The Windows Runtime is easily accessible from C#, C++, and JavaScript. Although .NET has previously enabled other languages to use the framework, it required the languages to adapt. If you are familiar with JScript.NET, then you know that this is a JavaScript language for programming with .NET. In this case, JavaScript code can be used to directly access methods and properties from .NET classes.

Conversely, the Windows Runtime adapts to different languages, enabling developers ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required