Navigation
Although you can navigate the WebView by setting its Source property, it exposes four different navigation methods:
→ Navigate—Accepts a Uri and acts just like setting the Source property
→ NavigateToString—Navigates to in-memory static HTML content passed as a string
→ NavigateWithHttpRequestMessage—Enables you to specify the target as an HttpRequestMessage object covered in Chapter 19. This is useful for performing an HTTP POST instead of a GET, or providing custom HTTP headers.
→ NavigateToLocalStreamUri—A more powerful version of NavigateToString. Use this to navigate to local content that needs to reference other local files (such as images, CSS files, or scripts). You need to use a special URI with an ms-local-stream scheme, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access