locked
Windows 8.1 WebView accessing local HTML files RRS feed

Answers

  • It depends on your specific needs, but Navigate as demonstrated in Scenario3 will allow copying HTML and an Image to the local folder and then displaying them in the WebView.

    Give it a try with your exact scenario to confirm!

    --Rob

    • Marked as answer by P5music Thursday, October 24, 2013 9:16 AM
    Wednesday, October 23, 2013 12:13 AM
    Moderator

All replies

  • Hi P5,

    Yes, you'll use NavigateToLocalStreamUri. Take a look at Scenario 4 in the XAML WebView control sample .

    --Rob

    Tuesday, October 22, 2013 1:17 AM
    Moderator
  • Hello,

    it seems that also Scenario3 is suitable for my needs. Am I wrong? I need to have a folder where to put persistent HTML pages (with image elements like <IMG src='img1.png'> inside) at runtime (they are not in the app package). So, Is it the Navigate() method suitable too?

    Tuesday, October 22, 2013 9:17 AM
  • It depends on your specific needs, but Navigate as demonstrated in Scenario3 will allow copying HTML and an Image to the local folder and then displaying them in the WebView.

    Give it a try with your exact scenario to confirm!

    --Rob

    • Marked as answer by P5music Thursday, October 24, 2013 9:16 AM
    Wednesday, October 23, 2013 12:13 AM
    Moderator
  • It seems that Scenario 3 is suitable for my needs, I tested it and it works. Thanks.
    Thursday, October 24, 2013 9:16 AM