WebViewBrush.SourceName 속성

정의

HTML 콘텐츠를 제공하는 원본 WebView 컨트롤의 이름을 가져오거나 설정합니다.

public:
 property Platform::String ^ SourceName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring SourceName();

void SourceName(winrt::hstring value);
public string SourceName { get; set; }
var string = webViewBrush.sourceName;
webViewBrush.sourceName = string;
Public Property SourceName As String
<WebViewBrush SourceName="nameOfWebView"/>

속성 값

String

Platform::String

winrt::hstring

HTML 콘텐츠를 제공하는 WebView이름 또는 x:Name 특성입니다.

설명

WebViewBrushWebView 컨트롤 원본과 연결하기 위한 두 가지 대안이 있습니다.

  • SourceName 속성을 설정하여 식별자 이름으로 Source WebView 를 참조합니다.
  • SetSource 메서드를 호출하고 WebView 개체를 전달하여 참조하여 원본 WebView를 참조합니다.

적용 대상