开发者

Can i use Activex with silverlight4?

I need to use a ActiveX control in my silverlight application. After some research i found out a few ways in which a silverlight app can use ActiveX control

Use ActiveX control in a webpage along with silverlight plugin and use javascript for interaction between silverlight and activex.

Use a webbrowser con开发者_如何学Ctrol in silverlight 4 and load the webpage containing activex in webbrowser control.

Is there any other way that can utilized to embed activex control in silverlight app. I read somewhere that silverlight 4 has support for COM components. Can silverlight4 provide support for embedding activex control in a silverlight app.

Any help on this is highly appreciated and if some samples/documentation link is there that would be great.

Thanks in advance.


Silverlight does have support for COM automation servers like those used with Microsoft Office. It doesn't have general support for COM though and even if it did, ActiveX controls have very specific hosting requirements.

The idea of using the browser control is a possibility, but it will introduce some significant limitations. For one, you cant use the WebBrowser control in Silverlight unless you're running in out-of-browser mode which means your users would have to take steps to install the Silverlight application.

Additionally, the WebBrowser control (including any ActiveX controls it contains) will always render above your Silverlight content and won't be able to participate in transforms, animations, styling, etc. In other words it will stick out like a sore thumb.

What kind of control is it? Perhaps there is an alternative?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜