Hi I'm trying to display a System.Windows.Controls.WebBrowser in a RadWindow. The WebBrowser does not appear to render properly. The WebBrowser control is there (I can right click and display the context menu) but the page it displays is not visible? The following code snippets should demonstrate the issue...
Create the RadWindow in response to a button click...
<Window x:Class="TelerikForm.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" |
Title="Window1" Height="300" Width="300"> |
<Grid> |
<Button Name="launchWindow" Content="launchNewWindow" Click="launchWindow_Click" /> |
</Grid> |
</Window> |
private void launchWindow_Click(object sender, RoutedEventArgs e) { |
RadWindow testWindow = new RadWindow(); |
testWindow.Content = new Browser(); |
testWindow.Show(); |
} |
<UserControl x:Class="TelerikForm.Browser" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Width="600" Height="600"> |
<StackPanel> |
<Border Width="590" Height="590" Margin="5" BorderBrush="Black" BorderThickness="1"> |
<WebBrowser Name="browser" Loaded="browser_Loaded" > |
</WebBrowser> |
</Border> |
</StackPanel> |
</UserControl> |
private void browser_Loaded(object sender, System.Windows.RoutedEventArgs e) { |
browser.Navigate(new Uri("http://www.google.co.uk/", UriKind.RelativeOrAbsolute), null, null, ""); |
} |