WebBrowser.Source Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the URI location of the WebBrowser control.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property Source As Uri
public Uri Source { get; set; }
<object Source="Uri" .../>

Property Value

Type: System..::.Uri
The URI source of the HTML content to display in the WebBrowser control.

Remarks

The specified URI can be fully qualified or be a relative URI. When you set the Source property in XAML and use a relative URI you should use the following convention:Source="/Page1.html" is an app-level resource that gets resolved to the base URI of the application (XAP file).

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

WebBrowser Class

Microsoft.Phone.Controls Namespace