Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Accessing Windows 7 Features from Silverlight

Accessing Windows 7 Features from Silverlight

This item in japanese

Microsoft has released a library exposing Windows 7 features – sensors, speech, devices, taskbar, touch – to Silverlight Out-of-Browser applications running with elevated trust.

Silverlight was meant initially to run only in the browser and to have very limited access to system’s resources for security reasons. Later, Microsoft introduced the Out-of-Browser (OOB) capability, allowing Silverlight applications to run outside the sandbox of a browser, but still having some limitations. Silverlight 4 came with COM+ Automation allowing Silverlight OOB applications to access Windows components with a COM-enabled API. This feature was specifically introduced for enterprise customers and requires elevated trust. The problem is that not all Windows components support COM, so they are not accessible from Silverlight.

Native Extensions for Microsoft Silverlight (NESL) is a library of components exposing Windows 7 features to Silverlight applications. Version 1.0, released in December last year, brought support for the following components:

A month later, Microsoft has released NESL 2.0 Preview Build, adding support for multi-touch, demos and bug fixes for v.1.0. More features are to be added in future versions of the library.

The library runs only on Windows 7 32-bit or 64-bit, and can be used by an OOB Silverlight application running in elevated trust. NESL is not supported on other editions of Windows nor on Mac OS X. The code is being released under the Microsoft Code Sharing License.

Related information: Automation (OLE Automation) – general information on using automation on Windows, Silverlight 4 Automation from A to Z – an example of using automation in Silverlight.

Rate this Article