Prevent scrollbars with WPF WebBrowser displaying content

Posted by Kevin Montrose on Stack Overflow See other posts from Stack Overflow or by Kevin Montrose
Published on 2009-12-16T00:53:29Z Indexed on 2010/03/25 20:43 UTC
Read the original article Hit count: 725

Filed under:
|
|

I'm using the WPF WebBrowser component to display some very simple HTML content. However, since I don't know the content size in advance, I'm currently getting scrollbars on the control when I load certain datasets.

Basically, how can I force (or otherwise effect the equivalent of forcing) the WebBrowser to expand in size so that all content is displayed without the need for scrollbars?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf