WebView.Source Property

Definition

Gets or sets the Uniform Resource Identifier (URI) source of the HTML content to display in the WebView control.

public:
 property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };
Uri Source();

void Source(Uri value);
public System.Uri Source { get; set; }
var uri = webView.source;
webView.source = uri;
Public Property Source As Uri
<WebView Source="uriString"/>

Property Value

The Uniform Resource Identifier (URI) source of the HTML content to display in the WebView control.

Remarks

The Source property retains its old value during navigation until the navigation is complete. During navigation, you can get the new Uniform Resource Identifier (URI) through the event arguments for the navigation events.

Applies to