views:

1266

answers:

2

I would like to create an ActiveX control that uses Silverlight. Is this possible/sensible and does anyone have an sample code for this?

I am working in a legacy (non web) system that cannot directly use WPF/Silverlight controls. But the system can access ActiveX controls. The thought is that we may be able to host Silverlight in an ActiveX control, and therefore update our rather dated UI.

A: 

Hi,

Why do you want to do this? I cant think of a reason for this myself but could you give a little more information?

Blounty
You should use add comment on the question for this. It is not answer.
AnthonyWJones
+1  A: 

Read this article. Silverlight COM Ref.

The article indicates activeX controls in 'agcore.dll' On windows it is actually imported through 'npctrl.dll'.

you compile may have some sort of activex control wizard.

EDIT: With that said. It might be as easy to host IWebBrowser in an activeX control and embedd silvelight into the browser control from local storage via 'xaml'.

Michael