Display mixed HTML content without WebBrowser? (problems with ScrollViewer)

I want to display some HTML content in my WP7 application. I use WebBrowser and it works very well. However, my WebBrowser is inside a ScrollViewer, because I have some content that is not HTML on the same page. So, I made my WebBrowser non scrollable and fixed height. But control cannot be higher than 2048px, and I have some content that is larger than that. Therefore, it does not display the entire page, and the text is cut. Here is the code:

<ScrollViewer> <StackPanel Orientation="Vertical"> <Image Height="240" HorizontalAlignment="Center" Stretch="{Binding ImageStretch}" Width="Auto" Source="{Binding Image}" /> <TextBlock Text="{Binding Credit}" TextTrimming="WordEllipsis" /> <TextBlock Text="{Binding Description}" TextWrapping="Wrap" IsHitTestVisible="False" /> <phone:WebBrowser Width="Auto" IsScriptEnabled="True" ScriptNotify="WebBrowserScriptNotify" IsHitTestVisible="False" /> </StackPanel> 

And here is a screenshot of the problem: Webbrowser problem

So, is there any alternative to the WebBrowser control or is there a workaround?

thanks

+6
source share
1 answer

There is no alternative, as far as I know, however solving this similar question involves a simple algorithm for converting HTML to TextBlocks:

HTMLTextBlock for Windows Phone 7

+4
source

Source: https://habr.com/ru/post/912830/


All Articles