Activation and IInspectable

At runtime, where does the code that powers the CameraCaptureUI class come from? You have already seen how the Windows Metadata file doesn’t contain code. Because of WinRT’s roots in COM, you should not be surprised that WinRT components are registered in the Registry, providing a way for the runtime to look up the implementation for a given class. Figure 32.11 shows the registration of the CameraCaptureUI class in the HKEY_LOCAL_MACHINE registry hive.

Image

FIGURE 32.11 The registration of the CameraCaptureUI class.

In here, the DllPath value refers to the .dll file on disk, containing the implementation of the given class. ...

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.