다음을 통해 공유


방법: 페이지로 이동

이 예제에서는 NavigationWindow에서 페이지로 이동할 수 있는 여러 가지 방법을 보여 줍니다.

예제

다음 중 하나를 사용하여 NavigationWindow에서 페이지로 이동할 수 있습니다.

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

            ' Navigate to URI using the Navigate method
            Me.Navigate(New Uri("HomePage.xaml", UriKind.Relative))

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

// Navigate to URI using the Navigate method
this.Navigate(new Uri("HomePage.xaml", UriKind.Relative));

// Navigate to object using the Navigate method
this.Navigate(new HomePage());
참고참고

Uniform resource identifiers (URIs)는 상대적이거나 절대적일 수 있습니다.자세한 내용은 WPF의 Pack URI를 참조하십시오.

참고 항목

참조

Frame

Page

NavigationService