I have a list of objects, each with a property which is HTML text as a string. I have them displayed in a ListView, and when a user taps on one, I want to open a new Page and render the HTML in a Web View. I have a number of issues:
When the WebView is contained in a View, the resulting page is always blank. I have a view with a label and a webview, both are passed HTML text when the view is Appearing but only the Label displays it. I am loading the HTML in the code-behind and it works perfectly if I move the WebView to the base content page instead of the view.
I can view about 3 object's HTML in the WebView before it locks up my device and the app stops responding. I have the WebView on a new page and on tap of the Listview Item, I PushAsync the viewer page into my main Navigator page. I then use the back button to move back to the list view after reading the HTML and select another object. I can do this 3-5 times before the lock up occurs. Nothing on debug. It isn't a specific piece of HTML, seems to do it on random items.
I can't get the WebView to size correctly. Ideally, I would like it in a scroll view with a summary label at the end of the rendered page. That is I would like the height of the WebView to dictate the height of the scrollview so that I can stick the label at the bottom. Any autosizing of any kind seems to make the WebView render at 0 pixels in height. Is there any way around this?
Thanks