wpf webbrowser on transparent window

Viewed 3322

I have a WPF WebBrowser control in a Window.

I want to remove the default window controls so I set AllowsTransparency="True" and WindowStyle="None".

<Window x:Class="InstallerToolkit.InteractiveDemosWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="870" Width="1110" WindowStyle="None"  AllowsTransparency="True"  WindowStartupLocation="CenterScreen">
<Grid>
    <WebBrowser Name="WebBrowser" HorizontalAlignment="Left" Height="795" Margin="10,35,0,0" VerticalAlignment="Top" Width="1082" />    
</Grid>

This results in me not being able to see my webbrowser contents. If I remove the AllowsTransparency="True" then I can see by webpage but I now have the default controls which I dont want.

How do I get around this?

2 Answers
Related