Use a custom library or Activex
Last post 06-11-2007 8:46 AM by luisabreu. 3 replies.
Sort Posts:
06-08-2007 7:35 AM
Use a custom library or Activex

Hello,

I would like to know if Silverlight can use methods, properties or events of a custom library, activex components.

And how to register and use them if possible ?

 Thanks in advance for your help.

Alphapage

Loading...
Joined on 01-07-2007
Posts 2
06-09-2007 10:23 AM
Marked as Answer
Re: Use a custom library or Activex

You can declare a Silverlight library (not one built with/for .NET Framework) in XAML using the namespace declaration and specify the type and assembly name. Then you can reference those types in XAML or in code-behind. If your declared assembly has other referenced assemblies, the Silverlight CLR assembly resolution mechanism will trigger their download without you having to declare them in the XAML. They will be looked for in the same location as your declared assembly was downloaded from on the server.

Silverlight does not provide you any way to install or run an ActiveX control. You need to use the browser's facilities for this and this requires users to explicitly opt in. However, it is possible for two functional ActiveX controls on an HTML page to talk to each other via the Javascript layer. In fact I have a sample of this using Silverlight and Google Gears - two separate ActiveX controls in IE from separate vendors with the integration coming together in the HTML page with script. See http://nerddawg.blogspot.com/2007/06/google-gears-and-silverlight.html

Ashish Shetty | Program Manager | Microsoft
Blog: http://nerddawg.blogspot.com

nerddawg

Loading...
Joined on 04-30-2007
Posts 119
06-10-2007 3:52 PM
Re: Use a custom library or Activex

Thanks. You help me very much on that particular point.

Regards.

Alphapage

Loading...
Joined on 01-07-2007
Posts 2
06-11-2007 8:46 AM
Re: Use a custom library or Activex

hello.

do keep in mind that this will limit your solution to IE only.

luisabreu

Loading...
Joined on 04-30-2007
Posts 612
Page view counter