forum

Home / DeveloperSection / Forums / WPF webbrowser on transparent window

WPF webbrowser on transparent window

Anonymous User 6872 17-Dec-2013

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 -  not being able to see my web browser contents. If I remove the AllowsTransparency="True" then I can see by webpage but  now I have the default controls which I don't want.

How do I get around this?


wpf wpf 
Updated on 17-Dec-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By