BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Accessing Windows 7 Features from Silverlight

| by Abel Avram on Jan 21, 2011. Estimated reading time: 1 minute |

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT