I have following code –
<Border Grid.Column="1" Grid.Row="1" Name="mask" CornerRadius="20" Height="auto" Width="auto" BorderThickness="1"
BorderBrush="Black">
<WebBrowser Name="webBrowser" Source="http://www.google.com" Margin="1" />
</Border>
It is providing the rounded boundry, but the webbrowser contant is still showing corners. I want to clip the extra corner to the boundry.
Unfortunaly the WPF WebBrowser isn’t a proper WPF Control, even though it’s in the System.Windows.Controls namespace. It’s just a wrapper around the IE ActiveX Control. So you cant apply styles, clip its corners, change the Control Template, etc. All WPF can do with the WebBrowser is change its size and position.
I think there are some hacks out there, but it definitively wont be as easy as setting a property.