Writing Windows Runtime Components

Writing a WinRT component is quite straightforward, starting from built-in project templates in Visual Studio. Figure 32.14 shows the project template under the Windows Store section in the New Project dialog.

Image

FIGURE 32.14 Creating a Windows Runtime Component project.

Both the WinRT component and Class Library projects produce a library that you can reuse. The difference between both project types is the reach of the resulting library. In particular, a regular class library can be used within a managed code Windows Store application, while a component allows for usage from other WinRT languages such as JavaScript. ...

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.