Search code examples
xamlwebviewwindows-10win-universal-appword-wrap

Word Wrap on WebView


I have been searching and searching and can't seem to find a solution. Is there a word wrap property for Webviews? Specifically in Universal Windows Applications.

This is my webview:

<WebView x:Name="body" 
  Visibility="Visible" 
  RelativePanel.Below="mySymbol"
  RelativePanel.AlignLeftWithPanel="True"
  RelativePanel.AlignRightWithPanel="True"
  DefaultBackgroundColor="LightGray"
  Height="300" 
  Width="1800"
  Margin="-5,80"/>

I am hoping there is something equivalent to TextWrapping="Wrap" like I would use in a TextBlock....

Does anyone have any suggestions or work arounds?


Solution

  • The wrapping of text displayed in a WebView will be dependent upon the HTML that is loaded in it as much as the properties (size) and visual tree of the WebView itself.