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.


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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.