BT

InfoQ Homepage News Accessing Windows 7 Features from Silverlight

Accessing Windows 7 Features from Silverlight

Bookmarks

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

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.