Sunday, October 27, 2013

Problems using the WebView Control inside a RichTextBlock

Hello,


I'm trying to display an html page (that is included in my App) inside a WebView control that is in a RichTextBlock.


When I use the WebView outside the RichTextBlock it shows the content properly.


<WebView Name="webView1" Height="400" Source="ms-appx-web:///HTMLPage1.html"/>


But when I embed the WebView in the RichTextBox, nothing is displayed. See below the example that does not work:

<RichTextBlock>
<Paragraph>
<InlineUIContainer>
<Border Background="Black">
<WebView Name="webView" Height="400" Source="ms-appx-web:///HTMLPage1.html"/>
</Border>
</InlineUIContainer>
</Paragraph>
</RichTextBlock>





No comments:

Post a Comment