开发者

Silverlight WebBrowser control. Does it provide the same functionality across Windows and Mac?

I am new to Silverligh开发者_如何学Got, so my question may sound silly. But does WebBrowser control in Silverlight allow to do the same things no matter what operating system uses an end-users of an application?

I'm thinking of implementing an application that will need to process user-supplied HTML and I will possibly use WebBrowser control to ease the parsing.

EDIT

My worries are inner interfaces like IHTMLDocument2, IHTMLElementRender etc that I will probably need to use. Not sure Silverlight will provide access to them, though.


It should be awfully close, but implementation details across platforms may differ slightly. On Windows, the WebBrowser control uses WebOC (the rendering technology in IE), and on MacOS it uses WebKit (the rendering technology in Safari, among others).

So for example, if you use CSS that only works in WebKit, then the Windows WebBrowser control won't look how you expect.

Thus, I recommend keeping the HTML you show as something that works cross-browser already. This is one of those places that Silverlight unfortunately doesn't make it any easier, it just delegates to the host OS.

Other than that, everything should be groovy. Do you have particual features you're concerned might not work? If so, I could look into whether they do work the same.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜