Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

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.

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).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show: