开发者

Why does WPF lack HTML support?

Why does WPF lack HTML support? I know there is the Frame. But that shouldn't even be considered a WPF control (not, at least, when it is rendering HTML)开发者_C百科. I know there is a hack with a floating window, but that's crap!

I just want to show a static HTML document in my WPF application, in a window with rounded corners and a drop shadow. I'm hitting a brick wall, and I'm incredibly frustrated!

HELP!


Can you just embed a web browser control in your WPF app? Your WPF app can then have the nice looking drop shadow around the WebBrowser control, and then WebBrowser control can host your static HTML.

http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/web-browser-control-in-wpf/


you're pretty limited with the functionality built in to WPF. WPF doesn't know how to render HTML on its own - it relies on the native Internet Explorer web browser activex control (aka Trident) to do this. activex controls are rendered in "child windows" on top of any other content in your wpf window. nothing you can really do about this.

the best alternative is probably to switch to a Google Chrome-based control which does not have such a limitation: http://wpfchromium4.codeplex.com/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜