O'Reilly logo

Professional C# 5.0 and .NET 4.5.1 by Morgan Skinner, Jay Glynn, Christian Nagel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 31Windows 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 www.wrox.com/go/procsharp on the Download Code tab. The code for this chapter is divided into the following major examples:

  • Language Projections
  • Lifecycle Management
  • App Settings

OVERVIEW

Starting with Windows 8, Microsoft offers a new runtime for writing Windows applications with a new modern style: 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 Windows Runtime, demonstrating how it differs from .NET and how you can integrate the two to begin writing Windows Store apps.

Windows 8 includes version 1.0 of this runtime: Windows 8.1 version 2.0.

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, Windows Runtime adapts to different languages, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required