Windows Dev Center

WebViewBrush.SourceName property

Gets or sets the name of the source WebView control that provides the HTML content.

Syntax


public string SourceName { get; set; }


<WebViewBrush SourceName="nameOfWebView"/>

XAML Values

nameOfWebView

The x:Name or reference name of an existing WebView control in the same UI.

Property value

Type: System.String [.NET] | Platform::String [C++]

The Name or x:Name of the WebView that provides the HTML content.

Remarks

There are two alternatives for associating a WebViewBrush with a WebView control source:

  • Reference the source WebView by its identifier name, by setting the SourceName property.
  • Reference the source WebView by reference, by calling the SetSource method and passing a WebView object.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

WebViewBrush

 

 

Show:
© 2015 Microsoft