WPF webbrowser on transparent window

Total Post:119


 5733  View(s)
Rate this:

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"
    Height="870" Width="1110" WindowStyle="None"  AllowsTransparency="True"  WindowStartupLocation="CenterScreen">
    <WebBrowser Name="WebBrowser" HorizontalAlignment="Left" Height="795" Margin="10,35,0,0" VerticalAlignment="Top" Width="1082" />   

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?

  1. Re: WPF webbrowser on transparent window

    Hi Goti,

    Adding ResizeMode = NoResize should get you rid of the controls.
    I should mention that AllowTransparency = True can reduce performance! 
    Depending on the kind of software, try avoinding it!

      Modified On Apr-03-2018 06:41:07 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.