Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

Created Unassigned: 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. [9047]

$
0
0
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

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>