WPF: I have created a user control that contains the code below. I then set this user control to the maptip of a graphicslayer. When the maptip opens I click the Test button and I tell that google.com is loading. You can never see the content though you can right click in the area where the browser should be and get the properties and view the html content. Why is the content of the browser invisble. Thanks.XAML:
<UserControl x:Class="MyApplication.frmMaptip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<StackPanel Background="White">
<Border BorderBrush="Black" BorderThickness="2">
<WebBrowser Height="170" Width="400" Name="webBrowser1" VerticalAlignment="Top"/>
<Button Height="25" Width="75" Content="Test" Click="Button_Click"/>
</Border>
</StackPanel>
</Grid>
</UserControl>
C#:
private void Button_Click(object sender, RoutedEventArgs e)
{
this.webBrowser1.Navigate("http://www.google.com");
}