NavigationWindow.Source 속성

정의

현재 콘텐츠의 URI(Uniform Resource Identifier) 또는 현재 탐색 대상인 새 콘텐츠의 URI를 가져오거나 설정합니다.

public:
 property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };
public Uri Source { get; set; }
member this.Source : Uri with get, set
Public Property Source As Uri

속성 값

Uri

현재 콘텐츠의 URI 또는 현재 탐색 중인 콘텐츠입니다.

예제

다음 예제에서는 속성을 설정 Source 하여 URI(Uniform Resource Identifier)로 이동하는 방법을 보여 줍니다.

// Navigate to URI using the Source property
this.Source = new Uri("HomePage.xaml", UriKind.Relative);
' Navigate to URI using the Source property
Me.Source = New Uri("HomePage.xaml", UriKind.Relative)

설명

NavigationService.Source을 참조하세요.

참고

URI(Uniform Resource Identifier)는 상대적 또는 절대적일 수 있습니다. 자세한 내용은 WPF의 Pack URI를 참조하세요.

종속성 속성 정보

식별자 필드 Source
메타 데이터 속성 설정 true Journal

적용 대상