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, ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.