Hi, not sure why, but I cannot use HtmlPanel, I tried WPF version both from source code and from nuget. both with same results:
> Layout measurement override of element 'TheArtOfDev.HtmlRenderer.WPF.HtmlPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
My code:
```
<UserControl x:Class="CBR.View.Reports.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:wpf="clr-namespace:TheArtOfDev.HtmlRenderer.WPF;assembly=HtmlRenderer.WPF"
mc:Ignorable="d"
>
<Grid>
<wpf:HtmlPanel Grid.Column="0" DataContext="{Binding}">
<wpf:HtmlPanel.Text>
<![CDATA[<B>Test</B> of HtmlPanel]]>
</wpf:HtmlPanel.Text>
</wpf:HtmlPanel>
</Grid>
</UserControl>
```
Net 4.0, x86
Thanks
J
> Layout measurement override of element 'TheArtOfDev.HtmlRenderer.WPF.HtmlPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
My code:
```
<UserControl x:Class="CBR.View.Reports.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:wpf="clr-namespace:TheArtOfDev.HtmlRenderer.WPF;assembly=HtmlRenderer.WPF"
mc:Ignorable="d"
>
<Grid>
<wpf:HtmlPanel Grid.Column="0" DataContext="{Binding}">
<wpf:HtmlPanel.Text>
<![CDATA[<B>Test</B> of HtmlPanel]]>
</wpf:HtmlPanel.Text>
</wpf:HtmlPanel>
</Grid>
</UserControl>
```
Net 4.0, x86
Thanks
J