This project is read-only.

WebBrowser control

Jan 22, 2015 at 12:20 AM
This one is really strange, using the xaml below works OK, but if I change the Window class to extra:Window, the webbrowser control is no longer visible.

It looks like this is also happening in the sample project. (Framework.UI.TestHarness)

The WebBrowserView is supposed to navigate to, but if run the sample project in debug mode, the control is not visible.
<Window x:Class="MainWindow"
        Title="MainWindow" Height="600" Width="1000">
    <WebBrowser Source="" />
Jan 23, 2015 at 10:28 AM
This is a problem in WPF itself as indicated in this StackOverflow article. The workaround is to set the following attribute on any window where you want to use a WebBrowser.
<extra:Window ...Omitted Code... AllowsTransparency="False">
The downside is that the window will no longer have a nice drop shadow but will fall back to Windows default drop shadow.
Marked as answer by jbooth on 1/23/2015 at 7:27 AM