Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
xamWebHtmlViewer
posted

Hallo,

I have a problem with the control. I've written the following code:

 <UserControl x:Class ="Level2.SilverlightControl1"

xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

 

mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" Background="YellowGreen" xmlns:igHtmlViewer="clr-namespace:Infragistics.Silverlight.Controls;assembly=Infragistics.Silverlight.XamWebHtmlViewer.v9.2">

<Grid x:Name="LayoutRoot" Background="Green">

<igHtmlViewer:XamWebHtmlViewer SourceUri="http://www.bing.com" Background="BlueViolet" HorizontalAlignment="Left" Name="xamWebHtmlViewer1" VerticalAlignment="Top" Height="300" Width="400" BorderBrush="#FFC80000" BorderThickness="10" MinHeight="100" MinWidth="100" />

</Grid>

</

 

 

UserControl>

 

When I add the UserControl to a Grid Control the WebPage is not visible, but if I add it to a ChildWindow I have no problems. How can I solve this problem?

Thanks

Markus

 

Parents
No Data
Reply
  • 760
    posted

    Hi Markus,

    I created your UserControl and added it to a Grid control and everything seamed to be OK. Here is the code:

    <Grid><local:TestUserControl /></Grid>

    I also tested the XamWebHtmlViewer control with the Microsoft's DataGrid and Infragistics' XamWebGrid and I didn't find any problems.

    If you still have any problems with the XamWebHtmlViewer , please send me some more details or a simple application about your problem.

    Regards, 

     Doychin Dochev

Children
No Data